Hi there,

I've got problem with your module - it just doesn't upload files. I created new content type, added file field. The settings are:
Permitted upload file extensions:
File widgets: checked both Images and Generic files
Files display: checked both Images and Generic files

When I click Upload I am getting error message saying "File can't be uploaded". Nothing is uploaded. Any ideas what should I check? I don't think this is a bug as to upload files is core feature and you probably wouldn't release beta if this doesn't work.

Thanks for your help,
Petiar.

CommentFileSizeAuthor
#3 Picture 1.png453.25 KBpetiar

Comments

drewish’s picture

can you upload files using the core upload module? if not there's probably a problem with the file system settings.

jpetso’s picture

Status: Active » Postponed (maintainer needs more info)

Seconding drewish's question. I believe there is no string in filefield that says "File can't be uploaded" verbatim, so it probably comes from Drupal core, whatever the actual cause is.

petiar’s picture

Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new453.25 KB

Yep, the core upload works fine...

See attached document. Core upload works fine, but yours, unfortunately, not. The error message means "Selected file ika_kraicova.jpg can not be uploaded. Only these file types are allowed: ."

Thanks for your help.

BrightLoudNoise’s picture

@petiar: Let's try to narrow the issue down, does it allow you to upload when logged in as admin? I noticed this problem when trying to upload as a normal authenticated user, however uploads worked while uploading as admin.

My initial test was with contentpermissions.module installed, however I've tried on a fresh install without the contentpermissions.module installed and saw the same issue for non-admin users.

BrightLoudNoise’s picture

@Petiar: There seems to be 2 possibly related issues actually, please provide further details as to your filefield settings, and whether you are also using filefield image.

  • It appears that for non-admin users "Permitted upload file extensions" doesn't actually allow files of any extension when left blank, contrary to what it claims in the help text. Explicitly permitting extensions let you upload files of that type as an authenticated or anonymous user depending on the permissions you've set up.
  • When using the upload widget for image files, there is an issue in IE7 where you receive the error even as admin. (May be related to http://drupal.org/node/280508)
ar-jan’s picture

Indeed! For me the problem is Internet Explorer. With IE7 I cannot upload an image, whether logged in as admin or user.

In Firefox I can upload an image, also as a regular user.
Also I CAN upload images with with the "Permitted upload file extensions" left blank.

For me it's a pure IE problem.

jpetso’s picture

Category: support » bug
Status: Active » Fixed

The "Permitted upload file extensions" bug is now fixed in CVS HEAD (it seems BrightLoudNoise was right with that analysis). If the IE7 bug still persists, can we put that one into a separate issue please? (Preferably including a step-by-step guide on how to reproduce this... although, I'm not using IE and have little incentive to fix stuff there.)

petiar’s picture

Hi BLN,

yes, I am using Filefiled image. I have tried to upload image logged as admin - this works! But when I try to upload image logged as "operator" (this is role we have created and has got permissions to everything) it still does not work.

I have tried to add some allowed extensions (jpg jpeg gif png) and now this works even with "operator" logged in, which is actually what we want to achieve. But I am pretty sure that this did not work before, because first I have tried to put some allowed extensions and because this did not work I ve deleted them.

So that means that you are right in your first paragraph. Unfortunately I do not like very much what you state in the second one. I am using Safari on Mac, but most users use IE7. That means we still can not use your nice module. :-( Any idea when you could get this sorted out? Thanks a lot!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.