question

Sven Baeck avatar image
Sven Baeck asked

Timeout when uploading certain JPEG files

Hello, I implemented file upload to my Amazon Cloud Drive using the REST API. File upload works nicely for almost all files. For some JPEG files however, the file uploads completely, but I get a time-out reading the answer. Seems as if nothing is being sent back from Amazon Cloud Drive. This only happens for certain JPEG files. The only thing I could find that these files have different compared to the files that do upload correctly is that they are smaller (2 - 2.4MB) compared to the others (4 - 5MB). I'm convinced this is caused by something I'm doing wrong, but I fail to understand what the problem is. If this sounds familiar to anybody, please do let me know how to get this resolved. Regards, Sven.
amazon drive
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered
Hi Sven, Thanks for posting! Is the metadata / EXIF data format and version the same in both? Without knowing what exactly is happening there, it's possible that those smaller files are the resized down versions of larger files, but the software that resized them added some bad/corrupted EXIF or meta data (just a guess)? Would you be able to provide one of each of those JPG files: one problematic and one that works fine. You can upload them to the cloud and send us the URLs. If you prefer not to post those publicly, please feel free to send us those URLs directly, by logging in to your Developer Portal account and filling out a Contact Us form: https://developer.amazon.com/help/contact-us.html -- please copy and paste this forum thread's link in your message too. Thanks!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sven Baeck avatar image
Sven Baeck answered
Hello Levon, Thanks a lot for your reply. I sent you a link to one of the files failing to upload correctly. The actual upload works. The file data gets transmitted over HTTP to Amazon Cloud Drive and the file gets stored correctly. Sending back the JSON response (reply to the HTTP POST) however takes very long 30s or more. For other files however, this reply gets sent back almost instantly. Regards, Sven.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered
Hi Sven, Thanks for that additional info -- I will forward your request to the Cloud Drive team, and will reply whenever I have an update. Thanks!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.