[BLOSSOM-95] No image preview when using file control in data module Created: 28/Aug/12  Updated: 07/Nov/14  Resolved: 04/Oct/12

Status: Closed
Project: Blossom
Component/s: data-extension
Affects Version/s: Data Extension 1.0.1, Data Extension 2.0.1
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Jean-Francois Nadeau Assignee: Tobias Mattsson
Resolution: Workaround exists Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows XP
Magnolia 4.5.4
Blossom 2.0


Attachments: JPEG File nopreview.jpg    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

There is no image preview or thumbnail when using a file control with the blossom data module.

I'm creating the dialog like this:

@TabFactory("Settings")
public void settingsTab(TabBuilder tab) {
   tab.addFile("logo", "Logo", "");
}


 Comments   
Comment by Jean-Francois Nadeau [ 28/Aug/12 ]

[WORKAROUND] I have a workaround for the image preview. I create the control like this:
DialogFile file = (DialogFile) tab.addControl("dataFile", "logo", "logo", "");
file.setConfig("type", "Binary");

The important part is to use "dataFile" instead of "file".

Comment by Tobias Mattsson [ 04/Oct/12 ]

Indeed, in data dialogs you need to use the 'dataFile' control in order to have preview working.

In fact it is advisable to always use the dataFile control for these dialogs.

Generated at Sun Feb 11 23:30:04 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.