I have been trying for 6 hours now to get file upload to work. It wasn´t a problem yesterday, but now it is.

Files just don't get uploaded and I get no error message. Apache don't even log an error.

Here is the deal. When I had been strugglingn with this for hours I decided that my Drupal installation must have been currupted so I did a clean install.

- I enabled the upload module
- gave the user permission to use the upload module
- verified file level permission
- configure file handling

but still no luck.

I can't see anything wrong. I can however see a lot of forum posts regarding this but none of them seem to help me. I mean, this is just such a fundamental thing in any CMS that it should work - if not - it should give descriptive error messages. It just silently ignores my request to upload a file.

I first noticed this problem when I could not import a new language. It just said it could read the "" file. Didn't even say the name of the file it was trying to read so I figured there was something very wrong. Soon I noticed that no files where being uploaded.

Any ideas?

It has to be a configuration error - either in php.ini, httpd.conf or Drupal.

Sammi

Comments

VM’s picture

may be related to file size. php defaults to 2M are the files you are trying to upload larger then 2MB ? if so adjust the necessary line in php.ini to increase your ability to upload larger files.

pbarnett’s picture

I've had some issues with the upload module myself; mostly due to where I decided to put the default upload directory... if it's in a subdirectory of the site, its writable by Apache; if not, you'll need to change some permissions.

When an upload fails, is there a file written to the upload directory, or is it failing completely?

Pete.

samueljonasson’s picture

Hi,

I have double checked php.ini settings and file uploads are allowed for up to 300MB. I also check another CMS that is currently running og the same apache server (my local one) with the same php installation and uploads work there.

So I have narrowed it down to Drupal configuration - which seem quite simple. Just set where to upload files and who can do it.

However still no luck.

no file gets uploaded, not even into the tmp directory.

Sammi

samueljonasson’s picture

looks like it is gonna be another long evening for me trying to figure this out.

Hope someone can shed some light on the issue.

Sammi

pbarnett’s picture

Hi again.

In extreme circumstances, I've edited the offending module source code and added calls to http://api.drupal.org/api/4.7/function/drupal_set_message in order to understand what is happening...

Worth a try...

Pete.

marsrc’s picture

By chance, are you using organic groups (og) module? I have just learned, after many days of debugging, that when I enable the og module, my file attachments no longer work!

I have yet to figure out why, and will post an update soon.

I realize this is an old post, but I want to put this on here for others in case they have the same problem.