PDA

View Full Version : html source upload button



steveashby
01-28-2008, 07:27 PM
I'm building my new site and I'd need html source to make people upload from their computer to my server, I have the script... from2email but I can't find how to setup for upload... let me show you what I have in my html source first...

<form name=uploadform action="/cgi-bin/form2sister.pl" enctype="/cgi-bin/form2sister.pl" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="60485760">
<input type=hidden name="action" value="upload">
<input type=hidden name="path" value="/domains/steveashby.org/public_html/cgi-bin/">
<input type=file name="file1" size=40>

That's in my control pannel and the form2email goes like this...

# Advanced Settings file upload
my @file_upload_fields = ();
my $rename_file = 0;
my $max_size = 100000;
my @required_file_types = ("txt", "doc", "html", "htm", "jpg", "jpeg", "tif", "gif", "mp3", "wav", "ogg", "wma", "psd", "pdd", "eps", "TXT", "DOC", "HTML", "HTM", "JPG", "JPEG", "GIF", "MP3", "WAV", "OGG", "WMA", "PSD", "PDD", "EPS");
my $error_max_size = "Your file is too big!";
my $error_file_type = "File type is not valid!";
my $file_dir = "/public_html/cgi-bin";
my $file_URL = "http://www.steveashby.org/cgi-bin/";
my $useKb = 100000;


what's wrong with my settings?
can somebody help me with it please?