Rank: Member
Groups: Member
Joined: 5/1/2004(UTC) Posts: 14
|
I'm using php and was able to successfully name the image upload folder using the author name. I'd also like to add a timestamp to the folder name as well, to prevent duplicate names(or maybe just add a number?)
What would be the best way to do this?
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
If you want to save each upload into separate folder, you can use PackageGuid value submitted with other fields of Image Uploader. It is unique for each upload session. You can also send your own identifier information like user id or current time with the following way: - Add HTML form with hidden input field.
- Attach this form to Image Uploader with param AdditionalFormName.
- Put to this field necessary piece of data (e.g. user id taken from cookie, or current time value taken from JavaScript). It is convenient to do it in Progress event when Status="START".
You can get time with the following JavaScript: Code: d = new Date();
t = d.getTime();
Hope this helps. Edited by user Wednesday, October 29, 2008 12:39:59 PM(UTC)
| Reason: Not specified
|
|
|
|
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.