[DOCU-162] Controls documentation is missing property preview on file control Created: 09/Jun/11  Updated: 07/May/15  Resolved: 17/Jun/11

Status: Closed
Project: Documentation
Component/s: content
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Tobias Mattsson Assignee: Antti Hietala
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

The file control supports a property type 'preview' which is not documented, is set to either 'true' or 'false' and defaults to 'true'. It controls whether to show a preview of the saved file as a preview or not. It also supports SWF files in addition to the usual image formats.



 Comments   
Comment by Tobias Mattsson [ 09/Jun/11 ]

Looking at the source it appears as if setting it to false instead shows an icon based on the mime-type.

Comment by Ruth Stocks [ 17/Jun/11 ]

Amended Controls page at - http://docuauthor.magnolia-cms.com/reference/controls.html#file

  • Added a "preview" row to the table.
  • From the class file it seems that only jpg, jpeg, gif, png, bmp and swf file formats are supported, so I amended the introduction to say this. At line 88 of the class there seems to be a typo "bpm".
Comment by Antti Hietala [ 17/Jun/11 ]

The file control supports uploading of any file type. It's just the preview rendering that is limited to the named image extensions. I edited the text to make this clear.

Generated at Mon Feb 12 01:06:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.