PDA

View Full Version : Allowing other people to upload things onto my site?



Rashelly
19-07-2006, 12:16 AM
This is rather hard to explain.
I know how to set up accounts for other people to upload files from an FTP client, but is it at all possible to create accounts to let people upload files to a folder of my choice without the need of an FTP client?
Not sure if I explained that very well.
Currently using LC-hosting.com, which uses c panel 10 (If that helps at all).
Thanks in advance for any help given.

Impossible
19-07-2006, 06:47 AM
So basically a file uploader?


Edit: If its a file upload use this which i got from tech tuts but i customised it a bit.

Create a file called upload.php, then put this into it and save:



<?php
$upload_name = "File Uploader";
$upload_dir = "folderforfilestogo/";
$num_files = "1";
$size_bytes = "2000000";
$limitedext = array(".gif",".jpg",".jpeg",".png",".txt",".htm",".html",".zip",".rar", ".psd",);
?>


Now save that, now create a folder called something like files, uploads etc in the directory you saved the 2 files in and in uploadconnect.php edit '$upload_dir = "folderforfilestogo/";' to the folder you want to files to go to.

Once done that, CHMOD the folder that the files will go to, to 777 and it should work!

Good luck

---MAD---
19-07-2006, 08:59 AM
So basically a file uploader?


Edit: If its a file upload use this which i got from tech tuts but i customised it a bit.

Create a file called upload.php, then put this into it and save:



<?php
$upload_name = "File Uploader";
$upload_dir = "folderforfilestogo/";
$num_files = "1";
$size_bytes = "2000000";
$limitedext = array(".gif",".jpg",".jpeg",".png",".txt",".htm",".html",".zip",".rar", ".psd",);
?>


Now save that, now create a folder called something like files, uploads etc in the directory you saved the 2 files in and in uploadconnect.php edit '$upload_dir = "folderforfilestogo/";' to the folder you want to files to go to.

Once done that, CHMOD the folder that the files will go to, to 777 and it should work!

Good luck

I might try that actually, I can think of a few places to use it, thanks :)

additional
19-07-2006, 09:24 AM
I think his asking for something that will let them edit the folder and able to upload files onto the folder.? Correct me if I got it wrong.

awelsh
19-07-2006, 09:24 AM
techtuts has two trypes examples can be found here www.ironcat.co.uk/uploader. although one doesnt work

Rashelly
19-07-2006, 12:10 PM
I think his asking for something that will let them edit the folder and able to upload files onto the folder.? Correct me if I got it wrong.
That's what I meant, but I'm a she :D
Thanks for the help so far, just about to try them out.
+rep.

Impossible
19-07-2006, 12:33 PM
Wait, i posted it wrong..

I think when i put in two [php] codes it messed up i will post it properly when i get home from school!

Rashelly
19-07-2006, 12:51 PM
Ok, none of them work for me, although it's proably me doing something wrong- I'm blonde, it happens often.
I currently have this one up - http://techtuts.com/?view=tutorials&act=tutorial&id=159
and it can be found here http://www.rashelly.com/upload

Impossible
19-07-2006, 02:19 PM
Don't use that one :] Use the one i tried posting -

http://techtuts.com/?view=tutorials&act=tutorial&id=169

Hope that helps, and now i only need 1 more point to get 200 rep :}

Rashelly
19-07-2006, 03:20 PM
techtuts has two trypes examples can be found here www.ironcat.co.uk/uploader. although one doesnt work
Could you possibly PM me the exact scripts that you have on the uploader? (The one that works) I tried doing it on www.rashelly.com/uploader the form seems fine, and the connect file was copied exactly from techtuts (http://techtuts.com/?view=tutorials&act=tutorial&id=169) - I try to test it, no error messages appear, but the files don't appear in the folder?

Rachel.
23-07-2006, 03:57 PM
Still needing help with this...If anyone can...

Mentor
23-07-2006, 04:24 PM
how in the word was setting a few varibles supposed to work

anyway: http://www.tizag.com/phpT/fileupload.php

Rachel.
25-07-2006, 07:36 PM
how in the word was setting a few varibles supposed to work

anyway: http://www.tizag.com/phpT/fileupload.php
There's a reason why I'm not a web designer.
And thanks for the link, going to try it now.

Want to hide these adverts? Register an account for free!