Aurigma Forums
»
Upload Suite
»
FAQ – ActiveX/Java Uploader
»
HOWTO: Rename files before uploading them to Amazon S3 storage
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: - It iterates all selected files in BeforeUpload event. Unique names are generated for each file, and saved to a temporary array.
- In BeforePackageUploade event, it saves index of file which is uploaded at the current moment.
- In BeforeSendRequest event, it sets file names which are got from unique names array.
- 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 |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Aurigma Forums
»
Upload Suite
»
FAQ – ActiveX/Java Uploader
»
HOWTO: Rename files before uploading them to Amazon S3 storage
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.