Can't upload any file [message #165738] |
Sun, 07 August 2011 12:16 |
|
Zeppelinfan
Messages: 8 Registered: August 2011 Location: Lyon
Karma: 0
|
Junior Member |
|
|
Hi,
First I'd like to congratulate you for the quality of your software.
I have just one small problem : since update from 3.0.2, I can't upload any file in messages, although their "weight" in KB is much below the maximum size available.
I always have this message :
"File Attachment is too big (over allowed limit of 16777216 bytes)"
But it's NOT too big, well under the 16384 KB allowed
When I upload on the server itself and try to insert with the "image insert" button, I sometimes also can't get the image.
There are no errors in the error log in ACP
I think the folders and files have correct permissions...
Any help would be nice.
Erik
-
Attachment: marcel.jpg
(Size: 27.42KB, Downloaded 1368 times)
[Updated on: Sun, 07 August 2011 13:50] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Re : Re: Re : Re: Re : Re: Can't upload any file [message #166382 is a reply to message #165751] |
Wed, 30 November 2011 03:16 |
|
ShineOn
Messages: 53 Registered: July 2011
Karma: 1
|
Member |
|
|
Frank, I am having the same problem - no matter the size of the attachment, it says it's too big.
The hosting provider's canned php.ini has both upload_max_filesize and post_max_size set to 10M.
I was able to use an .htaccess AddHandler to change the php handler to look in the document root, and put a customized copy of their php.ini in the document root and in fudforum/adm, with upload_max_filesize set to 10M and post_max_size set to 20M.
I am still getting the error.
Are there any other places where php files are executed from besides the fudforum root and fudforum/adm? Because I'm overriding the default "everyone use the same php.ini" I believe I have to have a copy of the customized php.ini in every directory a .php file might be executed from, because running a phpinfo() script in the fudforum root showed the customized php.ini in that directory was being used, but running the more php info in the adm cp still showed it coming from /etc/php.ini.
When I added a copy of the customized php.ini to fudforum/adm, the more php info in adm cp showed it was using the custom php.ini in fudforum/adm.
Any ideas?
<edit> More info: Uploads work just fine in the ACP file management panel, so it's not the upload process that's broken.
It must be something in the attachment process. I have added the custom php.ini to the /themes/<my theme> and themes/default directories, as they also have php files that are executed, but that didn't make post attachment uploads work.
Uploads to the ACP file management panel worked fine before I started messing with custom php.ini.
Note: I am using the path_info template in my theme and have path_info style URLs enabled. Could that be the problem? I will try changing themes and turning off the path_info style urls just for a test run and will post back. </edit>
<edit2> Well that didn't work. I changed the theme back to default, turned path_info style urls off and changed my profile to use the default theme. No joy, BUT -
I noticed that if you do something within the post form, without even entering in the browse box or selecting Upload File, the error message File Attachment is too big (over allowed limit of 10485760 bytes) shows up, which tells me it's not the upload part of the process that's causing the error to be thrown... I think it's a true bug and not just me screwing it up... </edit2>
<edit3> New info - sometimes when not doing any sort of file attachments, the "file is too big" message appears when you click "submit." Doesnt' sound like a php.ini issue to me, but I could be wrong... I'd like to at least have an idea where to look or how to debug this process. </edit>
[Updated on: Sat, 03 December 2011 04:39] Report message to a moderator
|
|
|