Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > BlueVoda Website Builder Forums > BlueVoda - General Issues

Notices

BlueVoda - General Issues All BlueVoda support issues that are not covered in the below forums.

Reply
 
LinkBack Thread Tools
  #1  
Old 05-09-2008, 11:27 AM
Private First Class
 
Join Date: May 2008
Posts: 9
Default changed upload file size to larger but larger files are not uploading

i put an upload file button on my website.

i changed the upload file limit to 500000000

the file i want to upload is 50mb

when i uploaded it, it wasn't in my uploads folder.

i uploaded a smaller file and it was there. i changed the script to accomodate for the larger file size but the file never added.

why?

how can i fix this?

also when people upload a file to the site, it sends me an automatic email. however, the person who is sending the email comes up as 'unknown'. how do i change that so i know who is sending me the files?

a quick reply is urgent
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 05-09-2008, 07:29 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,830
Default Re: changed upload file size to larger but larger files are not uploading

How can we answer you ?

HOW did you change the max upload file size ?
How do you upload the files ?

What script are you using ?
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 05-10-2008, 12:23 AM
Private First Class
 
Join Date: May 2008
Posts: 9
Default Re: changed upload file size to larger but larger files are not uploading

i followed the steps in the tutorial for BlueVoda on how to upload a file to website and it told me.

this is the script

<?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 >500000000)
{
//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.yourmusiconnet.com/uploads/".$upload_Name ;
}
//Sending Email to form owner
$mailto = "francisromano08********.com";
$mailsubj = "Song added to site";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Here is my song you bitches :\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: thankyoupage.html");
?>

this is what BlueVoda told us to use. We used it and it works for smaller files but large ones like full songs wont upload into the uploads folder. why? we changed the file size so larger ones can be added but they don't come through.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 05-10-2008, 05:40 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,830
Default Re: changed upload file size to larger but larger files are not uploading

Each server has it's own setings as for max filesize that you can upload, and you can't override this limit this way. So you can change the limit in the script, but only up to the max limit allowed by the server.
Some VH servers are set to 12, some to 20, and last, some are set to 35 MB.

The only way to find that out and actually set the limit to a larger number, is by using the phpinfo() command (to gather the info) and using yet another script to create a local php.ini file. This is quite easily done with a small script, that reads the server php.ini file, it changes whatever needs to be changed, and it then saves a copy of it in your own folder. Here it is:

<!-- /* SCRIPT NAME: modify_php_ini.php */ -->
<?php
// Put all the php.ini parameters you want to change below. One per line.
// Follow the example format $parm[] = "parameter = value";

$parm[] = "upload_max_filesize = 50M";
// full unix path - location of the default php.ini file at your host
// you can determine the location of the default file using phpinfo()
$defaultPath = '/usr/local/lib/php.ini';
// full unix path - location where you want your custom php.ini file
//$customPath = "/path/php.ini";
$customPath = "php.ini";
// nothing should change below this line.
if (file_exists($defaultPath)) {
$contents = file_get_contents($defaultPath);
$contents .= "\n\n; MODIFIED THE FOLLOWING USER PARAMETERS:\n\n";
foreach ($parm as $value) $contents .= $value . " \n";
if (file_put_contents($customPath,$contents)) {
if (chmod($customPath,0600)) $message = "<b>PHP.INI File modified and copied.</b>";
else $message = "PROCESS ERROR - Failed to upadate php.ini.";
} else {
$message = "PROCESS ERROR - Failed to write php.ini file.";
}
} else {
$message = "PROCESS ERROR - php.ini file not found.";
}
echo $message;
?>


Copy the above code, paste it in Notepad, save is as "modify_php_ini.php". Upload it on your server and run it (type in your browser "http://www.yourdomain.com/modify_php_ini.php")

It will modify the allowable file size to 50 Mb. If you need less, change it to 10, 20 or 30M, whatever you need.

It only affects your own site, not any other hosted on the same server.


In the script, it is assumed that your php.ini path is '/usr/local/lib/php.ini'

If you get from the script a message that php.ini was not found, use this other script:


<?php
phpinfo();
?>

Upload it on your site as phpinfo.php and run it (http://www.yourdomain.com/phpinfo.php)

It will display all your server php settings, and among them, you will be able to see your php.ini path and your max upload file size




Tip: since a php.ini file locally saved is loaded each time a request takes place, if you only use it to override the file size issue, i suggest that you publish your form inside a dedicated folder, and also load this script and run it only for that folder. This way, when users visit your normal pages, in your public_html (or www, whatever it is named) folder, the local php.ini file is not loaded at all.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 05-10-2008, 10:17 AM
Private First Class
 
Join Date: May 2008
Posts: 9
Default Re: changed upload file size to larger but larger files are not uploading

thanks that worked

but when people send me files it says 'unknown' as the sender in my email address

is there a way to change that so i get their name as the sender?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 05-10-2008, 09:01 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,830
Default Re: changed upload file size to larger but larger files are not uploading

Probably because the email field in the form is NOT named "email" but something else (like "Email" or anything else).
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 06-09-2008, 09:12 PM
Corporal
 
Join Date: Mar 2008
Posts: 18
Default Re: changed upload file size to larger but larger files are not uploading

Hello Navaldesign, I am trying to upload a file to my site using a form that VH provided:

<?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 >500000000)
{
//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.yourmusiconnet.com/uploads/".$upload_Name ;
}
//Sending Email to form owner
$mailto = "francisromano08********.com";
$mailsubj = "Song added to site";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Here is my song you bitches :\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: thankyoupage.html");
?>


THE FUNCTION OF RETRIEVING THE INFORMATION FROM THE USER WORKS WELL, MY ONLY PROBLEM IS I DO NOT SEE THE FILE UPLOADED INTO THE FOLDER (UPLOADS) FROM THE USER. CAN YOU TELL ME WHAT I DID WRONG?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 06-09-2008, 09:19 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,830
Default Re: changed upload file size to larger but larger files are not uploading

Use the new form wizard, it has a script embedded that i built that can upload as many files as you like. If you need to change the default file size, which is 1 Mb, include in your orm a hidden field, named "filesize" with value the size you want in Kb (in example, for size = 2 Mb, the hidden field must have a value of "2048".
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 06-10-2008, 01:57 AM
Corporal
 
Join Date: Mar 2008
Posts: 18
Default Re: changed upload file size to larger but larger files are not uploading

Dear Naval, base on your answer above, I don't think that is my problem. My problem is "I can not see the file that being uploaded to my UPLOADS folder. Even though it did display the successful messege in the thankyou_page.html" Can you please enlighten me. Many thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 06-10-2008, 05:07 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,830
Default Re: changed upload file size to larger but larger files are not uploading

The above script supposes that you have already created the "uploads" folder and you have already set its permissions to 777. Did you ?

Also, what is the size of the file you are trying to upload ?

Is your upload field named "upload"? the script that you posted above requires that the upload field MUST be named "upload",

The good thing with specific scripts is that they allow experienced users to modify them/adapt them to specific needs. For generic purpose forms, it is better if you use scripts that will take care of the "details" themselves, as the new Form Processor that is embedded automatically in your form, or ABVFP
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old 06-10-2008, 12:47 PM
Corporal
 
Join Date: Mar 2008
Posts: 18
Default Re: changed upload file size to larger but larger files are not uploading

Hi Naval, thank you for your quick response on this topic. Yes I did created a folder and name it "uploads" and I did change the permissions of the folder (uploads) to 777. I changed the filesize to 5Mb, but I don't know if the upload field is name upload or not. I don't think I change it, but I will check. I will let you know. Thank you so much for your help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old 06-11-2008, 12:54 PM
Corporal
 
Join Date: Mar 2008
Posts: 18
Default Re: changed upload file size to larger but larger files are not uploading

Hi Naval, after verifying your suggestion on the field name for "upload"; you are RIGHT, I did not have "upload" as a name for that filed, that was the cause to my problem. Thanks again for the many things you did on this support issue and for many others on this support forum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 11:59 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2007 VodaHost.com - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53