On Tuesday, 26 March 2013 at 5:55 PM, Devi wrote:
Couple of queries -- Currently, the uploaded images are saved on to the disk first andthen uploaded to AWS. Is this 2 step process intended? Do we want tomaintain a local copy too? In that case, do we want to do batchuploads to S3 periodically?
--~Devi--You received this message because you are subscribed to the Google Groups "HasGeek Code" group.To unsubscribe from this group and stop receiving emails from it, send an email to hasgeek-code...@googlegroups.com.To post to this group, send email to hasgee...@googlegroups.com.For more options, visit https://groups.google.com/groups/opt_out.
- Currently, the uploaded images are saved on to the disk first and
then uploaded to AWS. Is this 2 step process intended? Do we want to
maintain a local copy too? In that case, do we want to do batch
uploads to S3 periodically?
Devi, the local copy is meant to be a cache for when the image is requested at a different resolution and needs to be rescaled. We don't want to store everything locally long term, so this behaviour is until we add a cache management layer that discards local copy after a day or so.
We are assigning the image a uuid4 (stored as urlsafe_base64). The original filename should be stored as the default title, but can be changed by the user. It shouldn't be used for dupe detection.
However, dupe detection is a good idea, so maybe we can add an md5sum column and check against that.
Kiran
--
Kiran Jonnalagadda
+91-99452-35123
http://hasgeek.com/
(Sent from my phone)
Browsers only care for mime type, so extension-free is fine as long as the right mime type is delivered.
The same md5sum can legitimately appear twice if two different users upload the same image. This can happen when two users represent different departments of the same company. They'll want to use the same image but with independent permission management.
Titles are only shown to the uploading user to help them organize their images. Others will only ever see the image itself, embedded on another web page. The title is also an editable free text field. Therefore there is no meaning to a unique constraint on Title.