biigle / user-storage

:m: BIIGLE module to offer file upload and storage for users
GNU General Public License v3.0
0 stars 0 forks source link

Show thumbnails for storage requests #4

Open dlangenk opened 2 years ago

dlangenk commented 2 years ago

It would be much more convenient to have small thumbnails of the files to be approved. Otherwise we will only look at one or two files and then approve the whole bunch, which could lead to errors.

mzur commented 2 years ago

I like the idea but this is much easier said than done. This needs a full mechanism and storage configuration to generate and serve the thumbnails. The existing mechanism etc. can't be reused because the uploaded files are no real images or videos at this point (as far as BIIGLE is concerned).

mzur commented 2 years ago

This could be implemented as a student project. Thumbnails would need to be generated independently of the Largo module but maybe this could share some code? The view to review a storage request could then be extended with file thumbnails. I'd stick with the current view of the file browser but would just make each item a little bigger so it can show the (lazy-loaded) thumbnail.

I'd not implement the view like the volume overview because this does not work very well on mobile and there is no concept to show a directory tree there.