[Product-Developers] Re: PloneFlashUpload treating some jpg files like files

David Bain david.bain at alteroo.com
Thu Nov 13 12:16:19 UTC 2008


For those of you who may find this solution via Google, here is the
summary of the fix.

Go to {yourplonesite}/manage > content_type_registry > ATImage_ext

To the list of "Extensions" add 'JPG' (that's all caps) (for fun and
profit you can also add 'PNG' and 'GIF'.)


On Thu, Nov 13, 2008 at 7:13 AM, David Bain <david.bain at alteroo.com> wrote:
> To answer my own question.
> The problem turned out to be related to the content_type_registry.
>
> see the screenshot:
> http://img.skitch.com/20081113-cx9b3xeuahj3ahs2dpkp8hda11.jpg
>
> Apparently the content_type_registry is case sensitive when it comes
> to file extensions (this may only be the case on UNIX) so .JPG will
> not be treated as an ATImage.
>
> The solution:
> Add the uppercase version of the extension (JPG) to the list of
> ATImage extensions (ATImage_ext).
>
> On Thu, Nov 13, 2008 at 6:59 AM, David Bain <david.bain at alteroo.com> wrote:
>> While using PloneFlashUpload I noticed that when I try to upload
>> images that end with all caps for the extension for example
>> Myimage.JPG), the image is treated like a "File" and, as a result, it
>> doesn't get the "IATImage" interface.
>>
>




More information about the Product-Developers mailing list