.JPG files give javascript errors on upload, while .jpg doesn't

Stefan Nagtegaal - January 28, 2008 - 13:33
Project:Drupal
Version:6.x-dev
Component:file system
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active (needs more info)
Description

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..

#1

moshe weitzman - January 28, 2008 - 14:46
Priority:critical» normal

#2

BrightLoudNoise - January 28, 2008 - 15:04
Priority:normal» critical
Status:active» active (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.

#3

andrew_kabai - February 4, 2008 - 08:28

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.

#4

cjeanson - February 11, 2008 - 16:35

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?

#5

JillJack - February 11, 2008 - 17:19

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.

#6

Stefan Nagtegaal - February 11, 2008 - 17:30

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...

#7

adshill - February 12, 2008 - 12:14

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

#8

Gábor Hojtsy - February 12, 2008 - 13:35
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.

 
 

Drupal is a registered trademark of Dries Buytaert.