Upload data from your iPhone or iPad

By making use of Criterion AI's FTP interface, you can easily upload images or other types of data directly from your iPhone or iPad. You just need an FTP client on your device, of which there are many in the App Store. In this example, we will be making use of a free app for managing files called Documents by Readdle. You can download Documents by following this link.

Before starting this guide, make sure to create a dataset in Criterion AI and fetch the credentials needed for establishing the FTP connection. Check out our article explaining how our FTP interface works to learn how to obtain the credentials. You might want to access Criterion AI through Safari on your phone to make it a little easier to copy the username and password. Once you have done so, open up the Documents app on your phone and go to the Services tab.

Click on the Add Account button to create the bookmark to Criterion AI. Enter the hostname (ftp.criterion.ai), username and password, which you can obtain from the dataset page in Criterion AI.

Click on the Compatibility tab and make sure that the option Use of SSL disabled is off. We do want to make use of secure connections (specifically, explicit encryption via FTPS over TLS) so that option should be off as shown in the screenshot below.

Finally, save the bookmark.

Now, go back to your Photos app and find the pictures, which you want to upload to Criterion AI. Select the images using the selection tool.

Click on the Share button in the lower left-hand corner and then click on the Save to Files button (in Danish: ArkivĂ©r i Arkiver).

Save the pictures in an appropriate folder. In this example, we are storing the pictures in the Documents folder.

With the pictures stored in the Documents folder, go back to the Documents app and click on your newly created bookmark to establish the FTP connection to Criterion AI. Either create a new folder or upload your pictures directly to the root of the dataset. In this case, we have created an empty folder called Test in the root of the dataset. We wish to place all of our pictures inside of the Test folder. Click on Edit in the top right-hand corner and then on Upload in the bottom. Locate your pictures and then select them to start uploading them.

Once you have selected your images, click on the blue Upload button in the bottom to initiate the file transfer. Depending on the size of your files and how many you have chosen, the upload may take a little while. The Documents app will tell you once the upload has completed and, immediately thereafter, you will able to see previews of them, just like in the screenshot below.

If you open up your dataset in Criterion AI from web browser, you will see the files by navigating to the corresponding folder. Since iOS 11, pictures taken with iPhones and iPads are being stored in the High Efficiency Image File Format, which unfortunately cannot be previewed in web browsers at the time of writing this article. Though, you will still be able to see them in the overview.

If you wish to take a look at your pictures, you must download them and use an appropriate HEIF/HEIC viewer. There are many such viewers, which you can find and download online. One such example is CopyTrans HEIC for Windows. Viewing HEIF/HEIC files is supported natively in recent versions of macOS.

While HEIF/HEIC files cannot be previewed in the browser, Criterion AI is still capable of making use of them for training models. Thus, installing a viewer on your computer only serves the benefit of allowing you to see them for yourself if you wish to do so.

In this article, we made use of Documents by Readdle to upload pictures but we could really upload any type of data (e.g., documents, CSV files, videos, etc.), as long as the files can be accessed through Apple's Files app. Learn more about the Files app on Apple's website.

This concludes the article on uploading data directly from your iPhone/iPad.

Still need help? Contact Us Contact Us