Drag/drop file upload (storage file upload form type)

Description

Requirements

  • When adding a file (content type based on document type file) you now see a standard upload field. This should be a drag/drop upload using http://www.dropzonejs.com/ (if you know a better one please discuss with the PO)

  • You'll need to create a custom formtype for this.

  • (don't forget to use bower to install it)

  • Make sure validation works correct, because it doesn't work at this moment: when the file field is set to required in the content type configuration a file upload is required, unless there is an existing file (existing files are currently not detected when set to required)

Technical implementation

  • A pull request is already available, but we don't know if the code is complete and OK. Because the code can be used, maybe not

Test scenarios

  • Create a new File or Image content item and drap / drop a file in the latest IE, Chrome, Safari and VuurFox

  • Set File to "not required" --> try to add a content item without a flie

  • Set File to "required" --> try to add a content item without a flie, try it with a file and try to edit an existing item, without uploading a new file

  • Open existing file --> is image still displayed / file download link still available

Technical tasks

None

Deployment actions

None

Activity

Show:
Marijn Otte
May 13, 2015, 9:23 PM

I can't find the code. Can you please create a pull request?

JurreN
June 11, 2015, 8:57 AM

https://bitbucket.org/jurreroan/integrated-content-bundle/commits/59725eb070bb9eb9c0b9eeb6e6662e238592c666

This uses the html(5) file input. With this, you don't need to upload the file(s) before you click on submit.

Ger Jan van den Bosch
September 27, 2016, 9:15 AM

Write to temp file

API
November 2, 2016, 10:26 AM

.Notificatie oplevering gestuurd naar Integrated Marijn (marijn@e-active.nl)

Assignee

Unassigned

Client

Integrated Marijn

Sprint

None

Fix versions

Configure