Strange behaviour imo..
Enable the upload.module, and make sure that the 'jpg' (lowercase!) is in the allowed file extensions for upload.
Then write a new node and attach a .JPG (UPPERCASE!), Drupal bails out..

I have absolutely no clue why, but it seems that the file extensions are not handled equal when you look at the lowercase vs. uppercase filenames..

Comments

moshe weitzman’s picture

Priority: Critical » Normal
BrightLoudNoise’s picture

Priority: Normal » Critical
Status: Active » Postponed (maintainer needs more info)

Stefan, what browser were you using when you encountered this?

I have been unable to reproduce this error and have tested in Opera 9.25 win,Firefox 2.0.0.11 win, Firefox 3.0b2 win, IE6, IE7.

andrew_kabai’s picture

I tested it with "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11" and everything was okay, but I think there is something other problem with Konqueror 3.5.8:

when I select a file to upload and push the "Attach" button there is no http POST to the server just "Please wait..." text and the animated graph is showed.

cjeanson’s picture

I have been unable to replicate this. I have tried with FF 2, latest Opera, and IE7. Perhaps there are some strange server settings in place?

JillJack’s picture

Tested with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20061201 Firefox/2.0.0.12 (Linux Mint) and with Konqueror 3.5.6 (on KDE 3.5.6) and it works perfectly well with uppercase and lowercase extensions, despite the fact only the lowercase extensions are in the permitted list. I am unable to replicate the issues posed.

Stefan Nagtegaal’s picture

I'm using Safari 3 on Mac OS X 10.5..
I'll see if I can make a list on how to reproduce this more easily, including information about the server (which is not very important, according to the issue imo).

I'll get back later to ou guys...

adshill’s picture

I've tested on a fresh install on Safari 3 on OS X Leopard and I can't recreate the problem...

gábor hojtsy’s picture

Priority: Critical » Normal

People cannot reproduce this, and frankly, file names (including their extensions are case sensitive). You might enforce a policy of lowercase extensions only with your Drupal settings if you want to.

Fixdit’s picture

Got the problem here too... on Safari 3 on OS X Leopard. What could this be> Something Javascript related? Is it intermittent?!

dpearcefl’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Closing this issue because of a lack of activity.