Open httpdispatch opened 11 years ago
I've seen this problem. It's not related to Dropbox but with the generated photo. I believe it happens when...
create
URLThis is a valid issue we should look into.
What do you mean cached and sent to the user? It is android app sending photos from device to server and it is how photos look on the web.
The Android app uploads the original. The server stores it and a lower resolution at around 1280x1280. Every other size is generated later when it is requested. It's these lower resolution photos that appear to be corrupt.
Are the original uploads corrupted or they are OK?
@jmathai does server resize all the uploaded images and doesn't store the original iteslf?
I sent the original tweet, thanks for opening up an official bug report. Here are a few things I noticed:
Here is an example of a full-sized corrupt image:
I hope that helps, thanks for looking in to it!
@httpdispatch The server stores the original and additionally a 1280x1280 version. Then all other sizes are created as needed.
@thaddeusmt Thanks for the info. It contradicts what I had originally thought so it's very helpful. A couple of things I'm curious about.
Thanks!
1 Yes, I see multiple of the same photo in the web interface. I just made a couple of the files public so you can take a look that they are indeed viewable through the web interface: http://thaddeusmt.openphoto.me/photos/list They have slightly different names in Dropbox with a unique hash at the end, like IMAG0359-50f3899085886.jpg and IMAG0359-50f37d1a0fffb.jpg
@jmathai How i understand from the @thaddeusmt description android app reports about failed upload and tries to reupload photos. But server accepts even partially uploaded photos. Is it correct?
@jmathai any ideas?
@httpdispatch The server doesn't validate that the image isn't corrupt but it waits until the upload is complete. If it's terminated early it should return a 500 or empty response and not store the photo.
I've seen this issue with uploads locally not using Android. I'm not sure the app is the culprit.
User on twitter claimed about corrupted uploaded photos https://twitter.com/thaddeusmt/status/290813328786329600 "Evan Johnson @thaddeusmt @OpenPhoto Notice anything funny about these images synced from Android to Dropbox? http://i.imgur.com/pkDYo.jpg http://i.imgur.com/WW9Pe.jpg Cause?"
User uses dropbox as a storage. @jmathai @patricksan do you have any ideas where the issue is?