Feature Wiki
Tabs
Use D&D-Fileupload for File-Versions
Page Overview
[Hide]1 Initial Problem
Currently you can create new File-Objects by uploading the files using Drag&Drop. After that point, when uploading a new version of the file, there is no Drag&Drop solution.
2 Conceptual Summary
A FileUploadInputGUI which uses the refactored DropZones form the UI-Service und the File Upload Service. The Rendering of the Input will be implemented as the already accepted DR 5.1 - Issue 07: File Input on smartphones and tablets defines.
3 User Interface Modifications
3.1 List of Affected Views
- file/settings/
- Replacement of the current ilFileUploadGUI with a new DragAndDrag-FileUpload
3.2 User Interface Details
Replacement of the current ilFileUploadGUI with a new DragAndDrag-FileUpload
3.3 New User Interface Concepts
The File-Upload-Input-GUI as described above has already been approved by the JF: DR 5.1 - Issue 07: File Input on smartphones and tablets
4 Technical Information
The Implementation can use:
- HTTP-Service: https://github.com/ILIAS-eLearning/ILIAS/pull/466
- File-Upload-Service: File Upload Service
5 Contact
- Author of the Request: Schmid, Fabian [fschmid]
- Maintainer: Schmid, Fabian [fschmid]
- Implementation of the feature is done by: Schmid, Fabian [fschmid]
6 Funding
If you are interest in funding this feature, please add your name and institution to this list.
7 Discussion
JourFixe, ILIAS [jourfixe], May 08, 2017: We highly appreciate this feature suggestion and schedule it for 5.3. As mentioned above the UI element for the file upload should be the one implemented in DR 5.1 - Issue 07: File Input on smartphones and tablets. This change will affect all file upload elements in ILIAS.
Schmid, Fabian [fschmid] 2017-08-09: The current state of discussion will be reflected in the FR DR 5.1 - Issue 07: File Input on smartphones and tablets.
8 Implementation
The Implementation uses the ilFileStandardDropzoneInputGUI wich itself uses the Drozones from the UI-Service:
A ilFileStandardDropzoneInputGUI is used in a (legacy) Form to upload Files using the Dropzone of the UI-Framework introduced with ILIAS 5.3. In some cases this can be used as a Drop-In-Replacement of the ilFileInputGUI, but check your usecase after. If you need an example how to use it, see e.g. in UI/examples/Dropzone/File/Standard/with_usage_in_legacy_form.php
Why make it a Drop-In-Replacement and not just replace ilFileInputGUI?
- There are a lot of different ways a form is handled in ILIAS, sometimes only checkInput is called, sometime developers send their own error-messages and so on. The ilFileStandardDropzoneInputGUI excepts some standard-behavior and would fail in some cases when just replacing the ilFileInputGUI
- There are a lot of options in ilFileInputGUI which would be difficult to reimplement in
ilFileStandardDropzoneInputGUI without discussing them with all devs.
- Beside ilFileInputGUI there are many other File-InputGUIs with different functionality. We should consolidate their use-cases first.
Attention: This ilFileStandardDropzoneInputGUI changes the behaviour of your form when used: The Form will be sent asynchronously due to limitations of dropped files (see https://stackoverflow.com/questions/1017224/dynamically-set-value-of-a-file-input )
Test Cases
Test cases completed at {date} by {user}
- C1910: Neue Version hochladen
Approval
Approved at 2017-08-23 by Samoila, Oliver [oliver.samoila].
Last edited: 2. Apr 2019, 20:30, Samoila, Oliver [oliver.samoila]