HomeNotesD7 (beta3) Upload Photo fix
1013 days ago in 
Reactions: 7 comments 4 points0 reports
 
 

D7 (beta3) Upload Photo fix

Seems like for us that have Linux Servers (we should be plenty), a really strange problem occurs now and then!

No Photo Upload!

The problem got ridden of after i added some more extensions to the allowed one in the Photos Module. (Admin->Extensions->Photos->Settings)

There you should add the following to the Allowed extensions (third text box from the top)

jpg jpeg png gif JPG JPEG PNG GIF

Care to know why that is? The most obvious reason is that jpeg!=jpg and ofcourse due to the Case-sensitivity of Linux systems we get enough trouble to get discouraged!

Hope to be of help!

Plussed by

 
 
 
 

Comments

Oldest First
|
Threaded
 
 
Please login to post a comment.
AndreyP
http://www.boonex.com/trac/dolphin/ticket/858
already done
ZopfWare
Good job,

I just noticed that as well when I was trying to upload a file that had the .JPG (caps) extension. It wouldn;t show it to me even though I knew the file was there. Thanks for the heads-up!
CodeSatori
But then again, you see files named .Jpg, and so on... Or even .jpG! And people who have (by default) extensions of for recognized file types in Windoze won't have a clue what the error is all about.

The smart way to do extension checking is to separate the file extension of the upload and normalize it to lower case, and compare that against your allowed values --- then you have only one possible match per extension, and need only one mention per extension type in your allowed arrays.
Aramis
Checking extension transforming to lower case. So no difference, or it will jpG or Jpg, both will transformed to jpg.
ydrargyros
Should have predefined more file extensions... users are like sheep!
willtan
Same problem here.

But mine is Dolphin 6.1.6. Any idea how to include all the graphic extensions to resolve this issue? Thanks.
 
 
 
PET:0.053215026855469