Here's the story. I run a little website for me and my friends to keep in touch and talk nonsense. We are scattered around the world so I thought a central personal website for us would be nice. We post the same BS pictures that people tend to email to their friends and mess around like that. Here's the problem - the upload module spontaneously stopped working properly.

It's the strangest thing - a couple of people on the website are still able to upload, but most are not. I found that it was only my account and my brothers account that were still working properly. Interestingly his account is a custom role that gives him the ability to administer nodes and comments.

So I made a new custom user to test, gave him all the same permissions and he was still unable to upload. All users have permission to use the upload module.

By "unable to upload", here's what I mean. The user is able to use the file browser to choose files, clicks the upload button, and it looks like it is uploading but it doesn't work - it acts as though the upload has been successful but the file never ends up in the node and it never ends up anywhere on the server.

I know it's the upload module and not any of my server settings because I tried a different module, the fileshare module which is one of very few that doesn't use the upload module. My users are able to upload no problem with this module. However they are unable to upload using any module that uses the Upload module, including IMCE, Image or just the standard file attachment.

Anyone have any ideas? I don't even know where to begin with diagnosing this problem. If anyone has any ideas at all please let me know. My experience in PHP is extremely limited, FWIW.

Thanks
Martin

Comments

misty3’s picture

Has there been any change to the php version or to the settings in php.ini settings recently by your webhost ? I recently had such a problem ( with image upload, but not drupal ) and had it fixed after I wrote to the helpdesk of the webhost.

Best regards

Chill35’s picture

By "unable to upload", here's what I mean. The user is able to use the file browser to choose files, clicks the upload button, and it looks like it is uploading but it doesn't work - it acts as though the upload has been successful but the file never ends up in the node and it never ends up anywhere on the server.

Two questions :

1. If you select a file to upload, but do NOT upload it by clicking on the 'Attach' button, then you submit the posting, is the file uploaded ?

2. If you already have ONE file attachment, does it work then to upload a 2nd or 3rd file by clicking on 'Attach' ?

Caroline
A coder's guide to file download in Drupal
Who am I | Where are we
11 heavens

drupaldooer’s picture

I've been having the exact same issue... ive been pulling my hair out tryin to figure out whats wrong?

upload module wont upload correctly... you can browse, and click 'upload', and it will do its bar animation and refresh, but then there's no file.

i also installed tinyMCE along with IMCE... i can view my files in the browser, and can browse to upload a file, however, it will go to upload and then the file wont show up.

any ideas?

this is frustrating.

markdionne’s picture

I'm getting the same thing on two different sites. In both cases, I added Organic Groups shortly before I noticed the problem.

Another thing also broke at the same time: the same kind of thing happens when I try to change the Filter setting when viewing the Logs. In that case, I suspect that a variable stored in the $_SESSION object is getting lost. I notice that upload.module uses $_SESSION['file_current_upload'] and $_SESSION['file_previews'] which makes me suspicious.

markdionne’s picture

In my case, the Remember Me module is causing this (remember_me.module). If you CHECK the "Remember me" box on the login dialog, everything is OK. If you don't check it, then both the Logging filter and Upload attachment are broken. Probably lots of other stuff is broken too.

I will look into a fix for this, or at least report the bug.

(Sorry for pointing the finger at Organic Groups!)

markdionne’s picture

Previous comment was for Drupal 4.7.6

-mark

markdionne’s picture

Bug report is here: http://drupal.org/node/141418