By masao on
hi, i'm new to drupal. i try to use Drupal 4.7 built-in upload module and i set the size limit to 0 (that means no restriction) but when i upload the files that is larger than 3 MB, nothing happens (no error messages and no file uploaded).
So, what have i done wrong? please help. thanks.
Comments
server configuration ?
It's probably a limit on your server configuration.
Try to upload a "phpinfo.php" file with :
Then look at http://www.example.com/phpinfo.php
What are the value for "post_max_size" and "upload_max_filesize" ?
thanks, solved. it's really
thanks, solved.
it's really a server configuration problem. - -!
thanks a lot.
Also look at any limits you
Also look at any limits you may have set for the user role that is uploading the file.
What about timeout
What about timeout issues?
What if someone has a limited connection, and tries to upload 3mb, or 5mb...and it takes 10 mins? Do PHP uploads time-out?
Yes, php timeout can also be
Yes, php timeout can also be an issue. The way to take care of this is to first find the timeout settings using the php info file referred to earlier in this thread and then get your hosting company to change this to a much higher setting. You can also do this yourself if your host allows you to use a custom php.ini file. The exact methodology for using this file varies from host to host but it is doable.
Increasing the timeout setting is similar to increasing the php memory limit when you use lots of drupal contrib modules.
i think it's not time-out
i think it's not time-out issue. because i use AppServ (Apache + MySQL) installed on my computer.
This may not be a problem on
This may not be a problem on a local install, but can potentially be one on a hosting account.
file upload issues.
http://drupal.org/node/66718#comment-128750
The above link will take you to some general issues associated with php.ini file and some workarounds if necessary.
Timing the script and making sure that the script is not racing for beyond the php execution times allowed in php.ini is also essentially.
Lary Holland
My version of a fix for this
I had trouble getting large uploads to take, and tried several different things, but the following changes to .htaccess are what fixed it:
php_value max_execution_time '1000'
php_value max_input_time '1000'
php_value post_max_size '10M'
php_value upload_max_filesize '10M'
It should be noted that these values are not necessarily correct for your installation; you may want to increase or reduce these as you see fit. Additionally, the post_max_size and upload_max_filesize should probably match your drupal settings, just to be nice and equal. Also:
max_execution_time and max_input_time are measured in seconds. 1000 sec = ~15 min, so you'll want to lower this, probably.
all of this can also be
all of this can also be accompished using a custom php.ini file and uploading it to your drupal root folder.