I am doing a forms on my app where the user takes a photo from his gallery and sends it to me. What I want is to receive that photo through Google Drive/ Google Spreadsheet but I can't make it work. For now, I am following this example: https://groups.google.com/forum/#!topic/mitappinventortest/liWppNXqHXM
It perfectly works for the Camera function. However, when I try it with the ImagePicker.Selection it doesn't work properly. It shows me this error screen:
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.
was only designed to cope with AI2 in different locales where a jpg is a jpeg, it was not designed to convert from one image format to another. This may be the issue if you are selecting bmp files using the image picker ?
You might also want to use DO IT to check the file paths from the image picker as they pass through the routine to ensure they are correct
Yes, where it sais "bmp" it was originally saying "peg". I changed it because the following error appears me every time I try to send the photo to Google Drive. So, in order to fix the error I tried to change that, but it still doesn't work... !
Have you properly updated your script?
1 Open the script project
2 Go to Publish
3 Deploy as Web App
4 Project version: - select New from the dropdown
5 Execute the app as: your google account address (email)
6 Who has access to the app: Anyone, even anonymous
7 Press the Update button
You have to do this EVERY TIME you change your script
try to find out, when exactly you get that error...
disable most of the blocks and start with only resizing the image without sending it
in case this works, then activate a few more blocks until you know, what causes the error...