#7 — Uploaded image files not recognized as portal_type image

by Harald Friessnegger last modified May 23, 2010 01:04 PM
State Resolved
Version: 0.9
Area Functionality
Issue type Bug
Severity Medium
Submitted by Harald Friessnegger
Submitted on Mar 16, 2010
Responsible Harald Friessnegger
Target release: 0.10
upload a picture via "add..image" results in the id: dsc01344.jpg, using uploadify the id is dsc01344-jpg

strangely plone recognizes the image as a file (according to the icon) in the folder_contents view but the title attribute tells me it's an image (see attached screenshot)
a click on the image takes me to the /view action that shows the image and editing gives me the atct image's edit form.

edit and save (w/o changes) makes the uploaded file be recognized as an image. so does renaming to dsc01344.jpg

so basically this is an uploadify or even more general ATContentTypes/Mimetypes issue.

(this has originally been posted on the issue tracker of collective.plonetruegallery: see http://plone.org/products/plone-true-gallery/issues/19)
Attached:
PNG image icon gallery-file-or-image.png — PNG image, 14 kB (14397 bytes)
Added by Harald Friessnegger on Mar 16, 2010 08:00 PM
reindexing objects in the upload script solves this issue.
Added by Ramon Bartl on Mar 29, 2010 03:44 PM
Issue state: UnconfirmedResolved
Responsible manager: (UNASSIGNED)frisi
Target release: None0.10
Added by mintsauce on May 06, 2010 03:40 PM
What exactly do you mean by 'reindexing objects in the upload script'?

I've reindexed the whole site catalog via portal_catalog -> Advanced, but it has little effect.

Oddly, it also seems to make no difference if I rename, resave, or even upload via the Plone 'Add image' dropdown option, rather than via @@upload.
Added by mintsauce on May 06, 2010 03:45 PM
Also, my site recognises the images as image file types (or at least displays the correct icon), regardless.
Added by Harald Friessnegger on May 07, 2010 12:54 PM
hi mint-sauce ;-)

> What exactly do you mean by 'reindexing objects
> in the upload script'?

that we should do that in the package so users need not re-edit or reindex themselves.
(see http://dev.plone.org/[…]/atct.py#L71)

this should be fixed in 0.10. which version are you using?
Added by mintsauce on May 23, 2010 01:04 PM
This does appear fixed in

Plone 4.0b4dev-r36695
collective.uploadify 0.10
collective.plonetruegallery 0.9.1rc1
plone.z3cform = 0.5.1
plone.app.z3cform = 0.4.9

Images don't need re-uploading.

Thanks!

No responses can be added.