Forums

This topic is locked

ASP Upload - Unique Folder

Posted 01 Aug 2001 03:27:07
1
has voted
01 Aug 2001 03:27:07 Eddie Pang posted:
I am using ASPUpload. Is it feasible to create unique folder or directory for each uploading activity so that files with same name will not be overwritten ?


Replies

Replied 02 Aug 2001 21:35:03
02 Aug 2001 21:35:03 Viktor Farcic replied:
Isn't it easier to create unique file name instead of unique folder?

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I am using ASPUpload. Is it feasible to create unique folder or directory for each uploading activity so that files with same name will not be overwritten ?



<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Replied 03 Aug 2001 02:47:21
03 Aug 2001 02:47:21 Eddie Pang replied:
Yes it is easier to create unique file names. However, as the users are doing the upload themselves, it is extremely difficult to discipline the user to make sure that the files they upload is unique. If more and more files are added into the database, keeping and ensuring unique names will be an extremly difficult and cumbersome task.

Any other suggestion ? Thanks !!!!!!!!!!!

Replied 03 Aug 2001 05:43:12
03 Aug 2001 05:43:12 Waldo Smeets replied:
Check out the FAQ's / Pure Upload section of this site.

Waldo Smeets - www.UDzone.com Webmaster
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 03 Aug 2001 22:56:24
03 Aug 2001 22:56:24 Viktor Farcic replied:
You can create unique file by adding random string to original name. Take a look at this tutorial:
www.udzone.com/showDetail.asp?TypeId=7&NewsId=561

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Yes it is easier to create unique file names. However, as the users are doing the upload themselves, it is extremely difficult to discipline the user to make sure that the files they upload is unique. If more and more files are added into the database, keeping and ensuring unique names will be an extremly difficult and cumbersome task.

Any other suggestion ? Thanks !!!!!!!!!!!


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Replied 06 Aug 2001 13:17:17
06 Aug 2001 13:17:17 Shaun Brazier replied:
Would this apply for a site administrator who manages a holiday website. The administrator adds a holiday to one of 3 categories. Within that holiday are images. Wouldn't it be best to upload the images to a seperate directory for that holiday?

Replied 06 Aug 2001 15:16:00
06 Aug 2001 15:16:00 Viktor Farcic replied:
If you're storing names of files in DB, it doesn't really metter if it's in one or three directories. Only important thing is to make sure that each image has unique file name.

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Would this apply for a site administrator who manages a holiday website. The administrator adds a holiday to one of 3 categories. Within that holiday are images. Wouldn't it be best to upload the images to a seperate directory for that holiday?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic