Re: How to upload a file using a form
As you mention before... the above tutorial is outdated... is there a similar one where I can see step by step what I have to do to create an upload form?
The video tutorial doesn't give much detail about upload forms and I can't find the right path to do this...
Thx
Newbie Lince
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
I'm not able to set correctly an upload form... Anyone can help me? I know that I have to write "submit data to a page (script)...." But where is says URL what am I supossed to write? I would like to create a new folder where all the videos would be submitted.
Thx
Leave a comment:
-
-
Re: How to upload a file using a form
Okay, now I am totally lost..LOL.....I am a VH customer and very very new at forms. I did build the form with the wizard but it won't submit. As far as the permissions, just leave it alone because I used the wizard? Sorry to be a pain, I did not realize this was old (oops)
Thanks for your help
Leave a comment:
-
-
Re: How to upload a file using a form
if you are a VH customer, you don't need to use this script (this is old fashioned!)
Simply use the Form Wizard and it's built in Form Processor, OR use ABVFP.
They can both take care automatically of everything!
If you are not a VH customer, use ABVFP which runs on any server that supports MySQL /php
Last. if you insist on using this script, connect to your site with FTP, select the folder you use for the uploads, select Permissions (or properties, for some FTP softwares) and set them to 777.
Leave a comment:
-
-
Re: How to upload a file using a form
Now right click your new created folder, and set the permissions to 777
Thank you for all the info! I really needed this for my site The only thing I cannot figure out how to do is set the permissions to 777. I am in the Permissions for Upload file properties, but do not know exactly what to do from there. Thanks for your help!
Have a great day!
Amb
iJotiT! @ www.myijot.com
Leave a comment:
-
-
Re: How to upload a file using a form
Hi Naval, Cracked it!
Went to one of your previous threads and found the answer which was that I hadn't named the fields properly.
Cheers, happy now!
Leave a comment:
-
-
Re: How to upload a file using a form
Hi Naval
Thanks in anticipation, Gordon
Leave a comment:
-
-
Re: How to upload a file using a form
No, it has nothing to do with it. A link to the form please ?
Leave a comment:
-
-
Re: How to upload a file using a form
It has just dawned on me that the problem might be that I'm using an AOL email address, would that be the case?
Leave a comment:
-
-
Re: How to upload a file using a form
Dear Naval
Re having the facility to upload photo files
Have used the file wizard to do a form which comprises of 1 text field and 6 upload files and a submit button.
When I test it it seems to upload photos ok, but when I check my mail box the resulting email mentions the text box and submit button but no mention of the upload files and no attached photos.
What have I done wrong?
Many thanks, Gordon
Happy New Year
Leave a comment:
-
-
Re: How to upload a file using a form
Thank's Naval for your help is working great.
Each day i feel that i made a great choice chosing Blue Voda.
Thank You all for your help in the tutorials and forums .
www.asuaempresaonline.com
Leave a comment:
-
-
Re: How to upload a file using a form
Don't use this script, it is an old one. Use he built in form processor, it can upload files.
Leave a comment:
-
-
Re: How to upload a file using a form
Hello i did everything was you explained but i still have an error when i try to upload files could you pls take a look in http://mobilarte-pt.cybercafedalinha.com/uploadform.php
maybe i'm doing something wrong i don't know i review all several times and i can't see what is wrong.
thank's in advance
Leave a comment:
-
-
Re: How to upload a file using a form
Hi Wesley,
First, i don't understand why you use this script. You have installed ABFP if i recall, and ABVFP can handle file uploads easire, automatically, so why do you use a separate script ?
Second: with php there are server side limitations to the size of file you can upload. Usually it is set to 8 Mb on VH servers, in some cases to 12 Mb. A file bigger than that will cause ANY upload script to break.
It is possible to increase the max file size, using a local php.ini file, for a maximum of 52 Mb which is the limit for php.
However, creating a local php.ini file, can be somewhat tricky and it is not advisable that you do it unless you have some php experiense. Or it could mess your account.
Leave a comment:
-
-
Re: How to upload a file using a form
Hello Mr. Naval, can you please tell me what I did wrong here with code for uploading a file to my site. I use the same code that you presented, the only thing I change was the filesize from 1000000 (1mb) to 30000000 (30mb). Here is my problem: the code only takes file the have size from 7-8mb. But when I try to send a file with size 11mb the code did not show the error_page and it sent a blank email to me with a blank subject. And it kick off the thank_page to let the user know that their file was successfully sent. BUT NO FILE WAS UPLOADED. Can you tell me what I did wrong. Thanks.
====+++ uploaded code I used +++====
<?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 > 30000000)
{
//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.vietnam4christ.org/uploads/".$upload_Name ;
}
//Sending Email to form owner
$mailto = "wesleyvinhvan@vietnam4christ.org";
$mailsubj = "New Song Upload";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "File submitted:\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);
// Autoresponder
$mailto = $email;
$mailsubj = "Song you Sumbitted";
$mailhead = "From: Vietnam4christ.org\n";
mail($mailto, $mailsubj, $mailbody, $mailhead);
header("Location: thankyou_page.html");
?>
Leave a comment:
-
Leave a comment: