RobertSasak / esp32cam-google-drive

Upload photos from ESP32 camera to Google Drive folder
MIT License
12 stars 4 forks source link

Posting the chunked base64 encoded image returns error from script.google.com #3

Open parijip opened 3 months ago

parijip commented 3 months ago

Hi, Thanks for publishing your code. It gives us details of how to handle larger images when uploading to google drive. When I try to send a big file that gets chunked, google returns Internal Server Error. On going through the .gs code - what I understand is that the received string is decoded as base64. Is it needed to concat the chunks before decoding the full conatenated chunks as base64? Could that be the reason for the internal server error I receive. The code from gsampallo works fine and is able to upload smaller files without any issue. It will be of huge help, if you can let me know if this is correct - and whether the gs code should be modified to concat the chunks received. Thanks and regards, -Arijit

RobertSasak commented 3 months ago

Without any futher information it is hard to tell. I would start by capturing small pictures before proceeding to bigger.

parijip commented 3 months ago

Thank you for your response. Will give it a try with a smaller picture and see if I am able to get any file saved on to google drive for the same.