On 07/02/2013, at 1:35 PM, David Glick <notifications@github.com> wrote:

> In src/plone/app/blob/content.py:
> 
> >          if IATBlobImage.providedBy(self):
> >              return field.index_html(self, REQUEST, RESPONSE)
> > -        elif field.getContentType(self) in ATFile.inlineMimetypes:
> > +        elif policySettings.file_mimetype_behaviour is not None:
> > +            behaviour = policySettings.file_mimetype_behaviour.get(mimetype, None)
> > +            if behaviour is None:
> > +                behaviour = policySettings.file_mimetype_behaviour('','attachment')
> > +            if behaviour == 'view':
> > +                return self.restrictedTraverse(self.getLayout())()
> 
> What happens if no layout is set?

good question. 
I could switch it to "/view" which will do whatever /view does. Pretty much if there is no layout then something is really wrong as you won't be able to reupload the content.
I'm not sure that backing down to 'attachment' is right behaviour but I could equally do that.


> 
> —
> Reply to this email directly or view it on GitHub.
> 
>