Hello and thank you for taking a look at the following question.
I would like to create a phone app that will provide the ability to take a photo then immediately save that photo to a folder on a PC. I would like to accomplish this via WiFi. Would also be nice to be able to select which folder (on the PC) I would like the photos to be stored in.
The goal is to use WiFi and not use a USB cable.
The phone would be no farther than 50 feet from the PC.
I don't think it's possible to initiate a direct file transfer with and AI2 app to a PC.
However, I suggest you explore web API like the Google Drive API. You may consider storing the photo to Google drive while having the computer sync the drive, that way u can indirectly transfer your file to your PC.
That said, authentication protocol is another huge obstacle.
I have made an app that can do the exact thing you are trying to do using MQTT protocol. You can select image in the app, and then select the category (The category will be the folder in which file will be saved) and then when you press send, it will send the image.