[PHP] File uploader

Joined
Nov 18, 2006
Messages
640
Reaction score
0
i made a file uploader and it can be found below
EasyUp

the only issue i am having is When the file is done uploading it dosent give the user a download link...
does anyone have a suggestion on how?
 
Re: [php]File uploader

Hmm, just when the file is uploaded make it take the name of the file and put it into a string. After that just do <a href="www.website.com/EasyUp/EasyUp/files/$string">www.website.com/EasyUp/EasyUp/files/$string</A> i dont no if its the correct format for php but you should get the idea.
 
Re: [php]File uploader

Well, the file first gets uploaded to a temporary directory, then you can move it.

Use copy() or move_uploaded_file() to move it. The $_FILES global will contain all the information, also where it is in the tmp directory, so you can also use that for users to download it I guess, or you have to move it, not sure, try it out :D

Daevius
 
Re: [php]File uploader

We can't help you further without knowing what code you're using and what part of it is not working as planned - if you really only want a file upload, see one of the tutorials on php.net, that should give you ample example of how to proceed.
 
Its nice, but try to Improve it.
Maybe add an echo that Print the Link to the File so people would know what is the link of that file.
 
kip0130 said:
the only issue i am having is When the file is done uploading it dosent give the user a download link...
does anyone have a suggestion on how?

Pist0L! said:
Its nice, but try to Improve it.
Maybe add an echo that Print the Link to the File so people would know what is the link of that file.

Did I miss something? Kip wants help on how to do that, maybe try reading the thread before you post something. Also kip we can't really help you unless you have the code here or we have some idea of how you have it uploading and what language you have used. I suggest you do what Frag said, as that is proabbly all you will need, otherwise search around on Google for a few minutes and you will surely find something.

PHP Tutorial - File Upload
 
Back