PDA

View Full Version : Single file upload mechanism


Beavis
7-19-02, 06:08 AM
So, I have this one friend that wants to update a single file on my website once a month. That's not a big problem, however I would like him to be able to do it himself without giving him full access to my web space or create another user account.

IS it possible to create a simple HMTL forms page (maybe CGI ) that would allow him to upload one file and have it placed within a certain directory on my site ??

So for instance, he could click on "browse button" , choose the file, then click on upload and it would upload that file to my web site. But that file only - so maybe have a security check that the filename has to match my specific info to prevent lamers from uploading whatevery they want to my site.

Any ideas ?? Is it possible ??

blurchy
7-19-02, 10:09 AM
hi

heres an upload filter for you

http://javascript.internet.com/forms/upload-filter.html

it will let you upload jpg,gif,etc only.

the rest wont be so easy to do

but im sure someone else

will help you with that :)

Beavis
7-19-02, 05:18 PM
Ok..the front end and security work good, but what about the backend. It appears to be calling a file in my CGI directory, but what file should be there.

I don't understand CGI too well.

- Matt

blurchy
7-19-02, 05:41 PM
hi

i dont understand it too well either

download this


upload script

http://cgi.resourceindex.com/detail/05429.html

make a new post on the forum

and ask for help installing it

somone will have done this themselves

sorry i dont know enough about cgi

to deal with it


geees its a dead link

heres one that isnt

http://www.free-scripts.net/cgi/fileuploading.shtml

blurchy
7-19-02, 05:57 PM
HI

THIS ONE LOOKS THE EASIEST

http://www.perlscriptsjavascripts.com/perl/upload_lite/index.html

GOOD LUCK

Berek Halfhand
7-24-02, 10:38 PM
Go to www.hotscripts.com and select php scripts then look under file management/uploaders

I installed one yesterday called "php upload centre" which seems to be the biz. Only thing it won't do is upload by directory/contents/subdirs