• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

There was a problem uploading your file.

#1
Hi. I have just upgraded my server but I am getting this error. "There was a problem uploading your file."

Is there any way of getting more details on the error? I made sure my data and internal_data was set to 777 and ran the file check without any problem. I've enabled debug mode but it still doesn't give me any more information.
 

Jake Bunce

XenForo moderator
Staff member
#3
That error is not specific.

Is your forum behind a htaccess login? The flash uploader doesn't function in that situation. That's the only thing I can think of off hand.
 
#4
No it's a public forum that everybody can see. It's weird because I switched server and it used to work fine on the old server. Anyhow, I switched to the other uploader and it's fine, it's just that the flash looks better. ;)

It does allow me to select a file and to click on Upload, but then it gives me an error.
 
#6
My forum has this error also and disable the Flash Uploader can fix it.
Maybe it is a bug of XF.

System Centos 5x64 LNMP.
 

Jake Bunce

XenForo moderator
Staff member
#7
My forum has this error also and disable the Flash Uploader can fix it.
Maybe it is a bug of XF.
For onyxchase, mod_security was responsible for the error. This is not uncommon. Some web hosts are too restrictive about their server rules which can interfere with legitimate requests, not unlike a spam filter that catches legit emails.

Check your logs on the server. And contact your host to have them check the mod_security rules.
 
#8
For onyxchase, mod_security was responsible for the error. This is not uncommon. Some web hosts are too restrictive about their server rules which can interfere with legitimate requests, not unlike a spam filter that catches legit emails.

Check your logs on the server. And contact your host to have them check the mod_security rules.
Ok and Thanks.

I am using VPS so will check it myself...
 
#10
I have this same issue on my VPS, seeing as apache2/error.log gave me the following line of text, I'm sure I can fix this in a sec :)
Code:
[Fri Jun 22 13:19:02 2012] [error] PHP Warning:  POST Content-Length of 13071976 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
 

Jake Bunce

XenForo moderator
Staff member
#11
I have this same issue on my VPS, seeing as apache2/error.log gave me the following line of text, I'm sure I can fix this in a sec :)
Code:
[Fri Jun 22 13:19:02 2012] [error] PHP Warning:  POST Content-Length of 13071976 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
Try adding these lines to your library/config.php file:

Code:
ini_set('post_max_size', '16M');
ini_set('upload_max_filesize', '16M');
If that doesn't work then you may have to increase these settings in the php.ini file on the server.
 
#12
Didn't want to start a new thread about this as there's quite a few going around.

I've set everything in php.ini to 125M and execution time is 960
I'm trying to upload a 1.15MB .rar file and it fails at 30% every time.

Is it something browser side because others can upload and it randomly worked once today but been trying again and it's failing still.



EDIT: Works fine on Firefox (latest)
 
#15
Try adding these lines to your library/config.php file:

Code:
ini_set('post_max_size', '16M');
ini_set('upload_max_filesize', '16M');
If that doesn't work then you may have to increase these settings in the php.ini file on the server.
I'm afraid my server administrator already fixed this by sorting the configuration memory usage values (Which had not been defined in the files), to be fixed for apache or w/e module was using them. Only If I had known the above before, thanks a lot.
 

Bellinis

Active member
#16
One of my users also reported that since recently he is unable to attach images to a post.
In IE it works, in Firefox it doesn't.

What could be the problem?

Thanks!