4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: techmob on July 23, 2006, 09:56:18 PM

Title: issue with uploading after a backup re-install
Post 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

Quote
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
Title: Re: issue with uploading after a backup re-install
Post by: BartAfterDark on July 24, 2006, 04:57:11 PM
did you try with a diffrent browser?
Title: Re: issue with uploading after a backup re-install
Post by: techmob on July 25, 2006, 12:36:01 AM
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
Title: Re: issue with uploading after a backup re-install
Post by: V@no on July 25, 2006, 12:51:00 AM
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.
Title: Re: issue with uploading after a backup re-install
Post by: techmob on July 25, 2006, 02:15:39 AM
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!
Title: Re: issue with uploading after a backup re-install
Post by: techmob on July 25, 2006, 11:23:02 AM
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
Title: Re: issue with uploading after a backup re-install
Post by: techmob on July 28, 2006, 08:11:22 PM
can anyone help
Title: Re: issue with uploading after a backup re-install
Post by: techmob on August 19, 2006, 10:29:26 AM
bumping this thread as the problem still remains!  :cry:
Title: Re: issue with uploading after a backup re-install
Post by: techmob on August 24, 2006, 10:25:47 PM
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:
Title: Re: issue with uploading after a backup re-install
Post by: V@no on August 25, 2006, 02:01:16 AM
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 ;))
Title: Re: issue with uploading after a backup re-install
Post by: techmob on August 28, 2006, 11:08:07 AM
thanks pm sent
Title: Re: issue with uploading after a backup re-install
Post by: techmob on August 30, 2006, 09:16:55 PM
V@no did u get my pm

cheers
Title: Re: issue with uploading after a backup re-install
Post by: V@no on August 31, 2006, 12:51:12 AM
Ok, can I test it myself?
Title: Re: issue with uploading after a backup re-install
Post by: techmob on August 31, 2006, 10:23:49 AM
sure!

check your pm

thnks
Title: Re: issue with uploading after a backup re-install
Post by: V@no on August 31, 2006, 03:04:17 PM
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.
Title: Re: issue with uploading after a backup re-install
Post by: techmob on August 31, 2006, 04:21:56 PM
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 -

Quote
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

Title: Re: issue with uploading after a backup re-install
Post by: V@no on September 01, 2006, 12:42:52 AM
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
Title: Re: issue with uploading after a backup re-install
Post by: techmob on September 01, 2006, 01:26:07 PM
yeah good call!

nice one!