Solonik77 / digitalus-cms

Automatically exported from code.google.com/p/digitalus-cms
0 stars 0 forks source link

Missing mime type for jpeg's #112

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Some jpg/jpeg images are being uploaded with mime type: image/pjpeg as 
opposed to image/jpeg. Both should be valid, but since image/pjpeg does 
not exist as the mime for jpegs, the image is rejected.

I am not sure why some jpegs have mime type image/pjpeg but have found 
references online where this is caused by an IE issue.

Its a simple fix. In the config.xml file, simply replace the <jpg ... /> 
node with this:

<jpg type="image" icon="picture.png">
     <mime>
         <type>image/jpeg</type>
         <type>image/pjpeg</type>
     </mime>
</jpg>

This is something users can do within their current installs since it is 
the config file but i would recommend making it part of the default 
install. 

Original issue reported on code.google.com by barbedwi...@gmail.com on 3 Jul 2009 at 8:18

GoogleCodeExporter commented 8 years ago
ok, thanks. this is updated in hte trunk

Original comment by forrestlyman@gmail.com on 3 Jul 2009 at 9:24