I have a problem when I try to edit a Tile with a NamedBlobImage. The code is like this:
class IDestaqueTile(model.Schema): image = NamedBlobImage( title = u"Image", required = True ) class DestaqueTile(tiles.PersistentTile): """PersistentTile"""
<plone:tile name="example.destaque" title="Destaque" add_permission="cmf.ModifyPortalContent" class=".tile.DestaqueTile" for="*" permission="zope.Public" schema=".tile.IDestaqueTile" template="templates/destaque.pt" layer="example.interfaces.IExampleSpecific" />
Pretty strait forward so far. I can edit tiles using the @@edit-tile view.
I can upload the image to this tile without problems. When editing the tile with a image already upload I get the standard plone upload widget asking if I want to keep the image or override it.
The problem is that if I let checked keep existing image and hit save the image is erased with any errors or warning. When I choose to replace the image everything works as expected.
This behavior means that the user will need to resend the image every time they try to edit this tile, which can be problematic.
Is this a known bug? Does anyone have any ideias?