ui-monorepo
ui-monorepo copied to clipboard
Display preview instead of static icons for files with previews available
Do you think that would be for text files as well?
edit: @FSM1
The more I think about this, the less I think this is practicable
- thumbnails for images hosted anywhere means we leak data
- thumbnails generated on the client side on the fly means downloading all files which is def not practical.
did you have any other idea @FSM1
- thumbnails for images hosted anywhere means we leak data
The thumbnail images would be generated client-side, encrypted and uploaded to IPFS. When the UI sees a file system item that has a populated thumbnail field, the UI would request to load that specific thumbnail, decrypt and then render.
- thumbnails generated on the client side on the fly means downloading all files which is def not practical.
Downloading and decrypting all the data would only be required if we would want all the previews to show up immediately. We could just as simply enable the generation of previews only for new uploads and when a file is previewed or downloaded.
That'd be nice the way you describe it. This would require some more metadata stored per file on the api side given the current structure I guess.