4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: techmob on July 23, 2006, 09:56:18 PM
-
i have had to reinstall an old backup, but i seem to have a problem when uploading a large file
i upload an 18 mb file
and after it uploads the page changes to
Control Panel
--------------------------------------------------------------------------------
In case you forgot your password, enter the email address you have used for registration
?
and also the file is not uploaded or viewable from within the gallery
i have allowed upto 20mb file size by editing the .htaccess file and within the admin upload section and that worked fine before i had to re-install
has anyone got any ideas please
, all the data/media are chmodded to 777
small files work - even upto 5mb it works fine
-
did you try with a diffrent browser?
-
did you try with a diffrent browser?
no i havn't but i can upload files at around 5mb+, but it does the above if i do a 18mb file!
i will try with a different browser to see, but the problem would still remain for users with internet explorer atleast!
i think it is un underlying problem, but i do not know what
cheers for the reply
-
look in phpinfo and make sure that upload limit is higher then the largest file you upload.
Even though you set something in htaccess, it doesnt mean the server will use your settings.
-
look in phpinfo and make sure that upload limit is higher then the largest file you upload.
Even though you set something in htaccess, it doesnt mean the server will use your settings.
ok i will thanks!
but wouldn't it give me a message about the file being to big, other than it prompting me for a password?
p.s found out the phpinfo is 2mb max, which means my .htaccess file is working as i can upload 5mb
it is as if it is timing me out, although i am still remaining logged in and it gives me the message about a password!
-
p.s also, i have uploaded the file via ftp and its there, it downloads properly
but as soon as i make a file upload in 4images and point it to the url, it shows the file as 976 bytes, when the file that is uploaded is 18mb
something is wrong but i do not know what
hope someone can help
i will continue searching in the meantime, seems a few have had the same problem but with no fix
i hope that changes with me
cheers
-
can anyone help
-
bumping this thread as the problem still remains! :cry:
-
can you not even help me V@no ?
search the forum and there is quite a few who have had this problem without a fix :cry:
-
I need see your phpinfo (PM me with a link to) (refer FAQ for more info about what this is if you dont know yet ;))
-
thanks pm sent
-
V@no did u get my pm
cheers
-
Ok, can I test it myself?
-
sure!
check your pm
thnks
-
The only reason I could think of is the max_input_time setting in php.ini it set to only 60 seconds. Try increase it to more then what it takes for you upload 7mb file.
-
hi mate cheers for looking!
i think i have solved it, when you gave me a clue with
max_input_time
i did some searching and found this info -
The most common cause of this is PHP itself. The following php.ini settings effect file uploads
file_uploads
1 to accept file uploads, 0 to not accept file uploads. Defaults to 1.
post_max_size
This is the maximum size of a POST request that PHP will accept. The default for PHP 4.3.x is 8M. If the file(s) you are trying to upload have a single or combined size over this value, PHP will exit. This affects the total post data. For example, if this were set to 8M and you are uploading four 3M files, PHP would not accept the files. You could, however, upload the four 3M files individually without a problem from this setting.
upload_max_filesize
This is the maximum size of an individual uploaded file. The default for PHP 4.3.x is 2M.
max_input_time
This is the maximum time PHP will accept input in seconds. The default for PHP 4.3.x is 60.
so i added
php_value post_max_size "20M"
php_value upload_max_filesize "30M"
php_value max_input_time "120"
to to my .htaccess file
and upload a 12mb file and it worked, i will let you know for sure later
cheers
edit:
yep all fixed with those settings!
i think this should be put in a place where people can see it, add it to FAQ maybe..
when i was researching this prob, i found a few posts on this site about it but with no fix!
it is an issue with the host and not the script!
so either phpinfo needs changing, or .htaccess to over ride it
cheers
-
Very good! thanks for getting back with the results ;)
Just a little note, the post_max_size value should be bigger or at least equal to upload_max_filesize because it combines total size of all files uploaded at once, plus other data from the POST form.
P.S. updated FAQ topic regarding this issue ;)
http://www.4homepages.de/forum/index.php?topic=6840.0
-
yeah good call!
nice one!