Log in

View Full Version : File upload failed error message


The_Rascal
03-14-2009, 10:27 AM
Hi,
We have a problem uploading files to posts on our forum.

I have run a diagnostics in the admin cp above and the results are as follows: -
file_uploads: On
open_basedir: None
safe_mode: Off
upload_tmp_dir: None
upload_max_filesize: 2.00 MB

Having checked most of the setting this morning already, I have discovered that the attachements are being saved in the database.
I have also increased a lot of the file sizes to more than the 2mb described above...

I presume that I need to set directory locations for the open_baderdir and the upload_tmp_dir?
If so where about should I put them on the ftp?

I cannot upload a file of ANY size, a 1.6mb zip or a 4kb text file... I always get file upload failed...

Can anyone help, please?

Thanks

snakes1100
03-14-2009, 12:35 PM
Please post a screen shot of the error page when the upload fails.

Correct both of there to the following and restart apache:
upload_max_filesize = 3M
post_max_size = 3M

The_Rascal
03-14-2009, 01:04 PM
https://vborg.vbsupport.ru/external/2009/03/22.png

Thanks for the reply snakes1100,
Where do I correct these settings?
and how do I restart Apache?

A bit new to this side of things :$

Only seems to be affecting a small amount of members
I am admin and cannot upload, but another admin can..
Some users cannot upload, but I was able to add an attachment to a users post last week...
Somewhat confused...

snakes1100
03-14-2009, 01:32 PM
As you didn't provide us with many details, changing those settings and restarting apache require a vps/dedicated server, ie root privileges.

If your host allows local use of php.ini files, you can set those values in a local php.ini file and upload it to your root/public_html forlder.

Also, are you apart of any other usergroup or just the admin usergroup?

The_Rascal
03-14-2009, 06:27 PM
I am in another usergroup aswell, but the same as the other admin who can upload files...

What details do you need and I'll see what I can find...?

We are hosted on a dedicated server (globalgold) but I can't see any .ini files on the root of the ftp... so not sure if they will allow us to do that or not.

Thaks for taking the time to help us :)

snakes1100
03-14-2009, 07:12 PM
If you and the other admin are in the same usergroups, he can upload without issue & you cant, then i would guess that you are tied to "additional usergroups" that he isn't.

Do you both have the same "additional usergroups"?

as7apcool
03-14-2009, 08:22 PM
plz try do repair for database

or make files hosted on the server not on your sql of the forum

to get fast performance

The_Rascal
03-15-2009, 12:02 AM
@ snakes1100 - yes, we are in the same exact same groups.
@as7apcool - I'll try a database repair tomorrow, and change the settings to put the files on the server rather than the databse too...

Thanks :up: