Is it possible to download a file or image from Appsheet?
YES!โ
I wanted to download the file or image with just one click, once I upload a file I sometimes needed to download it for some reason. I was thinking how to do it, and I constantly thought it was impossible.
See the result I was able to get:
How did I do that?
Well I needed to create an automation with an Apps Script code.
I tried hard until I got this result.
You will first need a column in your sheet, I called it Link, and here's the code I made:
Then...
Create an action to GO TO A WEBSITE and use the following formula:
"https://drive.google.com/uc?export=download&id=" & [Link]
[Link] receives the ID of the file in google drive
The final result is:
Destop: With this link it will automatically download the file/image in the desktop mode (in some PCs it will open a form where you can rename and save the file and others, no! I guess it is some browser setting you can cgange.
Mobile: it will open the file in the drive app in your mobile and then you'll be to download, share, etc.
But you can also download it instantly in your phone if you unable the "open supported link" in the Drive Application seetings.
Let me know what you think about it, and if it is useful to you somehow.
Looks like this method will no longer work after the change in Drive functionality is completed May 1, 2024. While Drive will no longer allow download links, links to viewing files in Drive would still be possible, so the link could presumably be reformatted to do that using the same getid() script.
Edited to add:
Went ahead and incorporated the getid() function into one of my workflow scripts and confirmed that I could make a valid link format with the formula "https://drive.google.com/file/d/"&[DriveID]&"/view?usp=drive_link". Mobile use has the identical user experience as above, but Desktop does change from being a one-click operation into the action opening a drive view window and where you can click to download.
After reading about the new functionality of GDRIVE, I am looking for a solution and already have an answer here. Huge thanks!!
Bem Mateus eu olhei o post e ainda nรฃo pesquisei uma soluรงรฃo acerca deste assunto, mas vamos aguardar para ver se o google disponibiliza outra forma de fazer tal coisa.
Olรก, meu amigo.
Me parece que a construรงรฃo de url:
https://drive.google.com/uc?export=view&id=FILE_ID1
Estรก funcionando, basta alterar os cรณdigo para esta url.
It is still working
I am not aware of this update. Could you please send me the link of this?