Re: How to upload a file using a form
Another question. Ive set the upload to 200mb max. Is there anyway I can add a gile upload progress bar? maybe one that pops up inot a new window which states how much the progress the file is in uploading and the file name? similiar to useruploads.mythica.org??
How to upload a file using a form
Collapse
This topic is closed.
X
This is a sticky topic.
X
X
-
Re: How to upload a file using a form
Please note that you have published the corrected form as php. Correct the extension back to html and publish again
Leave a comment:
-
-
Re: How to upload a file using a form
Thank you so much navaldesign!!!!!!!!!!!
You rock my socks off!!!!!!!!!
YAY Now My clan Members can upload their montages!!
THIS IS THE ULTIMATE FORUNTAIN OF KNOWLEDGE!!!
Leave a comment:
-
-
Re: How to upload a file using a form
Ok, your problem is very simple: you have renamed your upload field, in the form, in "uploadfile" while in the script is "upload". That is why you don't get a value or actual upload. Rename it back to "upload" and it should work.
Also, please note that php will not allowyou to upload files bigger than 52 MB (you have set it to 200 MB). Files bigger than 52 MB can only be FTPed
Leave a comment:
-
-
Re: How to upload a file using a form
<?php
// Receiving variables
@$email = addslashes($_POST['email']);
@$upload_Name = $_FILES['upload']['name'];
@$upload_Size = $_FILES['upload']['size'];
@$upload_Temp = $_FILES['upload']['tmp_name'];
// Validation for max file size
if ($upload_Size>0)
{
if( $upload_Size >200000000)
{
//delete file
unlink($upload_Temp);
header("Location: error.html");
exit;
}
$uploadFile = "uploads/".$upload_Name ;
@move_uploaded_file( $upload_Temp , $uploadFile);
chmod($uploadFile, 0644);
$upload_URL = "http://www.ffaproam.com/uploads/".$upload_Name ;
}
//Sending Email to form owner
$mailto = "jackshinta@ffaproam.com";
$mailsubj = "Video Upload";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Video Upload Details :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
$mailbody .= "upload: $upload_URL\n";
mail($mailto, $mailsubj, $mailbody, $mailhead);
header("Location: thankyou_page.html");
?>
Leave a comment:
-
-
Re: How to upload a file using a form
Please look at the other thread you have posted. And post here the php script code.
Leave a comment:
-
-
Re: How to upload a file using a form
I have a problem with this.
My website is http://www.ffaproam.com/
And the upload page is http://www.ffaproam.com/uploadform.php
My problem is, when someone fills out the info and clicks submit it works fine but the file doesnt get uploaded or anything. I have used BlueFTP and made a file in public_html called uploads. I made its permision777. I added the php script in notepad, editied it, and put that into public_html using BlueFTP. Also, when I get the e-mail after someoen fills out the upload form, it has their video name, e-mail, but where the upload link is it looks like this basicly:
Video Name:Test
E-mail:Jackshinta@ffaproam.com
upload:
Upload is blank
Leave a comment:
-
-
Re: How to upload a file using a form
Great, thanks. It all works fine now. Even my stepson can do it!
Elaine
Leave a comment:
-
-
Re: How to upload a file using a form
Also, do NOT set the fields background to be transparent. This, some times, has this effect.
Leave a comment:
-
-
Re: How to upload a file using a form
Please select the form fields, one at a time, and bring them in front. Then save your page and publish again.
Leave a comment:
-
-
Re: How to upload a file using a form
Thank you for checking this. I noticed the problem with getting the cursor to appear in the comments box. I can't find anything overlaying it. A cursor does appear if you click on the scroll bar and then everything works fine, for me at least. Perhaps Mal's problem has something to do with his web browser. I read that someone was having trouble with some of the fields and a response was that Yahoo may be causing it. Maybe I need another beta-tester!
Elaine
Leave a comment:
-
-
Re: How to upload a file using a form
It worked fine for me, however your Comments fiels is (maybe) covered by something, because i could not directly click on it to type in. However, no error messages.
Leave a comment:
-
-
Re: How to upload a file using a form
Hi,
I've built my first website and everything works fine in preview and on my home pc. However, my stepson, who is beta testing my site repots that my contact page is not working. I downloaded the free contact form that David advertised as it suits my needs perfectly. Mal reports that when he goes to the contat page, he cannot enter a name. It just won't accept it, and he gets the error message. Any suggestions? The site is www.sidrheuban.com. Thanks, Elaine
Leave a comment:
-
-
Re: How to upload a file using a form
To anyone interested: A more elegant code for uploading multiple files, can be found in http://www.vodahost.com/vodatalk/for...form-help.html
Leave a comment:
-
Leave a comment: