Ticket #10984 (assigned Feature Request)

Opened 6 years ago

Last modified 3 years ago

Content Disposition should be optional for Files

Reported by: runyaga Owned by: djay
Priority: minor Milestone: 4.x
Component: Archetypes Version: 4.2
Keywords: disposition Cc:

Description

In the "Settings" for File objects it should offer a way to turn off Disposition. If you upload a File and really dont want to set Disposition and you goto it; it should work as expected (view the file).

Suggestions for wording on Settings schemata(is that the right term?):

Prompt to download Display inline (this would be false with current behavior) Disable browser viewing

Each of these indicate that a file, if you goto it will NOT be rendered. A patch will be submitted in a few.

Change History

comment:1 Changed 4 years ago by kleist

  • Status changed from new to confirmed
  • Keywords UI ATCT UX removed

comment:2 Changed 3 years ago by djay

  • Status changed from confirmed to assigned
  • Owner set to djay
  • Version set to 4.2

I've started implementation on this and seeking feedback in this pull request  https://github.com/plone/plone.app.blob/pull/4

comment:3 Changed 3 years ago by djay

btw, instead making it a per File instance decision to download or load inline, I've implemented it as a global registry setting of mimetypes which should be displayed using inline disposition. Default is attachment disposition (ie save as)

Note: See TracTickets for help on using tickets.