i am having trouble with uploading, when i upload big size file like >2M
it hang the browser and show blank screen and file does not get upload.
upload_max_filesize is set 8M
also added set_time_limit(0); in my script
But same thing on local network works file, seems problem in more setting.
please help
Rajesh Soni
Trouble with file uploading
Moderator: General Moderators
what doesprint?
Code: Select all
<?php
echo 'version: ', phpversion(), "<br />\n";
echo 'sapi: ', php_sapi_name(), "<br />\n";
foreach( array(
'max_execution_time', 'max_input_time',
'memory_limit', 'post_max_size',
'upload_tmp_dir', 'upload_max_filesize')
as $p ) {
echo $p, ': ', get_cfg_var($p), "<br />\n";
}-
sonirajesh
- Forum Newbie
- Posts: 6
- Joined: Wed Jul 04, 2007 5:32 am
I'm not sure what this means but...sonirajesh wrote:post_max_size: 8M
upload_max_filesize: 2M are handled by htaccess
and they are 16M and 8M respectively
get_cfg_var() says 2M and you have trouble uploading files >2M. I think all points to upload_max_filesize beeing 2M
upload_max_filesize can be changed via htaccess but it doesn't look like this has happened.
Did you put my code snippet in your actual upload script? That would eliminate all doubts.
oops, my mistake.
should bethen.
should be
Code: Select all
echo $p, ': ', ini_get($p), "<br />\n";