If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I do not need a file upload form... I just need a piece of code that can upload the file, check to make sure it is either a jpg, gif, mov, flv, png, jpeg...
I also need for the file to be renamed so that its the next number...
Example below...

Code:

A user uploads a file named "funny.jpg" it gets renamed to "1.jpg"
Another user later uploads a file named "JOKE.mov" 1.mov
Another user uploads a file named "FUNNY.jpg" it gets renamed to "2.jpg"

Basically I think the above is a system of make the filename into 1 and then checking to see if that file name 1 is taken and then increase the number...

I also need the file to be saved into a folder called "Pending"...

This is one area I can't quite get... hopefully if someone can really explain how todo this or better yet just give me the code and so that I can look at it and make sense. Thanks to those who help

building the upload script is really kinda heavily dependant on the data being sent to it... you are asking for a custom script, but telling us to create a generic script.

we helped you build a script before and there are multiple other threads here on upload scripts. If you change your script from before into a function you could very easily modify it to your specifications.

now on the folder / file name concept. I would suggest making a folder called pending, and then sub folders for each format that you wish to support. this will help separate between the different file types that you are allowing.

Need Help Again..........

Hi,
i have 2 servers.
I foubd that my server 2 doesn't supports Php so is there any other way
like asp solution for it ??
(recomending asp b'coz its supported by my server, i have only problem with .net and php anything else will do )