PDA

View Full Version : Issue attaching files from local PC


Hades_uk
08-27-2008, 05:29 PM
Hi people,

Hoping for a bit of friendly guidance of where to look for the problem.
Basically our server had an outage recently and after coming back no-one can attach files via the normal method from their local PC. Attaching a file from an external link works fine.
I ran the DIAGS for Upload and got the following:-

Pertinent PHP Settings
file_uploads: On
open_basedir: None
safe_mode: Off
upload_tmp_dir: None
upload_max_filesize: 200.00 MB

Results
No file uploaded and no local file found. The test cannot continue.

Anyone got any ideas on what could have changed?

Thanks in advance guys.

Hades

Lynne
08-27-2008, 06:00 PM
I'm guessing it has something to do with the upload_tmp_dir. Do you have access to your server to set up a /tmp directory?

Hades_uk
08-27-2008, 06:05 PM
Attachments are all stored in the database....
I wasn't aware there was a tmp directory for file uploads?

Any ideas where this is, as I do have full server access?

Hades

Ok I found the TMP directory for the webserver.... Was this what you meant?

We do have one and it's got a few really big files in there.......

Videx
08-28-2008, 12:26 AM
FYI, unless you have a really small board you shouldn't store attachments in the db.

Dismounted
08-28-2008, 07:33 AM
In PHP, you can specify a different directory to temporarily store files in the process of being uploaded. This is controlled by upload_tmp_dir. If the value is empty, then PHP will default to the normal temp directory.

Hades_uk
08-29-2008, 12:05 PM
Thanks for the responses people.
After alot more research it is apparent the only type of file attachment people can't upload is JPG attachments. Everything else seems to work fine. txt, gif, doc etc etc etc all upload fine.

JPG is definately allowed in the attachment manager.
Anything else I should check?

Hades

Marco van Herwaarden
08-30-2008, 06:02 AM
It could be that these need resizing and for this purpose a temporary file is needed.