adapt_authoring
adapt_authoring copied to clipboard
Ability to upload multiple assets
Requirements:
- Title, Description and Tags should be populated from a single set of values. In the case of title, this should be given a unique element to differentiate each image in the batch (maybe just an iterator).
- Should support zips and single files
- Should support drag/drop.
This has been done in branch issue/1467. Waiting for for thebigfix PR to be merged before creating PR.
We should have a look at dropzone.js to handle file upload. From an UX perspective multiple drag and drop file upload would be ideal.
@dancgray what's the status with this? would be nice to get it in the next release if the work's done
I would not use a zip folder to upload multiple assets. Instead I would add a dropzone that handles multi-file upload. This should actually work pretty good without a library. I think it should be part of the AssetManager refactor milestone.
@taylortom the work has been done, but it's quite clunky. The dropzone option suggested by @lc-thomasberger would probably be better.
I would really appreciate this feature. We often need to add number of graphs and adding them 1 by 1 is time consuming.
This would be a great addition. Probably asking for too much but it would be useful to upload a folder of images with sequential filenames for use with a component that needs to display the images sequentially - think slideshow or interactive scrubber type thing where you drag a draggable bar and the image changes as you drag it.
Just adding my support for this feature 👍
To do a drag and drop file uploader we would need,
Drop event: https://developer.mozilla.org/en-US/docs/Web/API/Document/drop_event Data transfer: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer File API: https://developer.mozilla.org/en-US/docs/Web/API/File
All of which are IE 10 and above.
Here's Mozilla's example putting it all together https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/File_drag_and_drop