PDA

View Full Version : allowing visitors to upload files


smokey651
12-14-2005, 01:44 AM
i have a form that allows my visitors to submit funny pictures and stuff to my site and i was wondering if anybody knows where i can find a free cgi script that will allow my visitors to upload the files directly from there comp to my site (or the companies site that hosts the script) and send me the url that the file is hosted on

nkrgupta
12-14-2005, 05:41 AM
http://www.perlscriptsjavascripts.com/perl/upload_lite/
http://cgi.resourceindex.com/Programs_and_Scripts/Perl/File_Management/File_Uploading/
http://perl.about.com/od/redirection/

And lots others @ http://www.google.com/search?hl=en&q=perl%2Bupload+script&btnG=Google+Search

Hope this helps!

smokey651
12-15-2005, 12:03 AM
i was just hoping for something that i can just put like ... http://www.example.com/cgi/uploading.cgi

and whenever the upload to that i was hoping it would be hosted in the uploaded files folder of my site (or it be hosted on the site that i got the script from if thats how the company works) and it the url be sent to my email...cuz i cant really figure it out (IM COMPLETELY NEW TO CGI)

mlseim
12-15-2005, 01:54 PM
smokey ...

What kind of security issues do you need?

What filetypes can they upload,
What file size,
How many?

You can envision someone (like a spammer) uploading 10,000 files ...
until your site crashes. You need to be more specific on how you'll
be dealing with these issues. Are the people uploading going to need
sign-on/passwords? Are you going to use .htaccess or something on
the directory?

What you want to do it easy ... the consequences though, could be
devastating. Spamming is a really bad problem now, since the spammers
are using automated robots to seek out forms and abuse them.

smokey651
12-15-2005, 10:43 PM
is there a way to put a time limit on it so they can only upload one file every 2 minutes? and it has to be 6mb or lower...plus if anyone can find a site where when someone uploads a file its hosted on the site where you got the cgi script from and they only host it for like 3 days...and they send you the url and you have to download it and stuff....that would be perfect for what im looking for

mlseim
12-16-2005, 02:03 PM
Smokey ...

Look at some of these:
http://www.google.com/search?q=perl+file+upload+management+scripts&btnG=Search

There's just so many variations, options, features, types of security ...
It's hard to pinpoint one specific script that would work for you.

Often times in these situations, I usually take one script that sort of works
and pieces of other scripts to make a customized program.

Also, some of the scripts use modules, which make things easier, some don't.

============================

You might want to consider this option ...

Create a new email account (in Yahoo, etc.) where people email you the
file. You then upload it yourself, after you determine it's appropriate, and
it's not spam. The upload script could be very simple with NO security,
since only you will be using it. This would keep anyone from uploading
a "funny picture" that was a little more than funny. Having it emailed to
you through Yahoo would also scan all files for viruses and worms automatically.

smokey651
12-16-2005, 05:43 PM
i already do that...but someone sent me an email with c:/mydocuments/pictures/picture1 or something like that so its completely useless to me