Capture image files on both iPhone camera roll and in database

I have a process app that our HVAC technicians use to capture information about customers’ heating and air conditioning systems. Included in the captured information are image files from pictures taken with an iPhone. When configuring the image picker components there is an option to either upload photos from the camera roll or use the camera to capture the picture.

My technicians say it is quicker to use the camera from the app. The only challenge is that the image uploads to an airtable database, but is not captured in the camera roll. The techs have asked if they can have the image appear on their camera roll as well as automatically updating the database. Is there a way to do that or a work around?

Thanks for any suggestions.

Unfortunately, Glide or Airtable cannot directly save images taken within the app to the iPhone’s camera roll. However, here is how you can achieve a similar outcome:
After the technician captures the photo using the app:
Display the uploaded image back in the app.
Add a “Download” button or link for the image file.
The technician can tap the button to download and save the image manually to their camera roll.

Thank you! I’ll give that a try.

1 Like

Is there an elegant way to directly download from the button click?

With actions…? What is your question?

I mean if you’re just using an action like open link in a new window, would it automatically download the image?

You are right… Give me a sec, I try something.

Well, I don’t think it is possible with the AI Component since it renders inside an iframe without the allow-downloads attribute.

I tried with rich content. No success.

1 Like

I built a custom GitHub page that downloads the file passed in the URL:

Feel free to clone the repo if you don’t trust the 110 lines of code :smiley:

2 Likes

That is literally what I was searching for @Bobby_Gay :joy:

Could you please provide the link to the GitHub repository?

Edit:

Seems to not be working with FreePik

Quite busy atm to work on this but feel free to try and improve it with the help of Chat GPT :slight_smile:

1 Like

Bookmarked. Thank you!

1 Like

Thanks. Will check it out!