View Full Version : Uploading....
ronin
02-06-2001, 10:27 PM
I want to create a simple form in which a user can
put his or her name in and upload a file off their
system on to my server on Host Rocket.
How can this be done?
petesmc
02-10-2001, 07:25 AM
Does the user have to be authorised to do this?
I am wondering how to do it as well with and without user verification.
Regards,
Igor
petesmc
02-13-2001, 04:38 PM
You want to make a baic upload where they can upload what types of files?
I would like to let users put any file (not executable, most probably TXT or ZIP) into the folder in my server.
Igor
richmedium
02-13-2001, 06:17 PM
You can do it via PHP without authentication thru HTTP protocol. Read this: http://www.php.net/manual/en/features.file-upload.php
dionysis
02-28-2001, 01:23 PM
I understand how to make the upload script, but what I am wondering is....The default upload directory is commonly the /tmp directory ....well when I looked at the phpinfo...it did not name the upload_tmp_dir...so my question is: Does each user have a directory that files will be uploaded to, or do they still load into one common directory and then get sent to a users specified directory?
3rdkynd
03-01-2001, 08:47 AM
When PHP uploads a file to /tmp, it's only there for the life of the script. In other words, when the script is done running, PHP will delete the file (hence /tmp). Your script has to copy the file from tmp/ intto a directory that you create. I think the destination directory needs wide open permissions (chmod 0777), which is obviously a potential security problem.
If anyone knows a more secure set of permissions (or ownership), please let me know. Unix permissions has always been one of my weak points.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.