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

Notification

Icon
Error

Options
Go to last post Go to first unread
quattro  
#1 Posted : Saturday, June 19, 2004 1:09:00 AM(UTC)
quattro

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?
Andrew  
#2 Posted : Monday, June 21, 2004 1:22:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 863

Thanks: 2 times
Was thanked: 25 time(s) in 25 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:
  1. Add HTML form with hidden input field.
  2. Attach this form to Image Uploader with param AdditionalFormName.
  3. 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

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.