Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Dmitry.Obukhov  
#1 Posted : Thursday, November 24, 2011 1:42:01 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Many our clients experience the following problem. An image uploaded to Amazon S3 overwrites another image with the same name which is already located on the storage. This topic describes how to avoid similar collisions.

I attached a sample application to this post. It allows sending files with unique names:
  1. It iterates all selected files in BeforeUpload event. Unique names are generated for each file, and saved to a temporary array.
  2. In BeforePackageUploade event, it saves index of file which is uploaded at the current moment.
  3. In BeforeSendRequest event, it sets file names which are got from unique names array.
  4. Then it sets new key for converters of Amazon S3 extender.
Try out this sample. If you have any questions, please feel free to ask them.

Edited by user Thursday, November 24, 2011 7:09:01 PM(UTC)  | Reason: Not specified

File Attachment(s):
AmazonS3Sample.zip (4,271kb) downloaded 208 time(s).
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.