ui-monorepo icon indicating copy to clipboard operation
ui-monorepo copied to clipboard

Display preview instead of static icons for files with previews available

Open FSM1 opened this issue 4 years ago • 4 comments

FSM1 avatar Mar 24 '21 15:03 FSM1

Do you think that would be for text files as well?

edit: @FSM1

Tbaut avatar Mar 24 '21 16:03 Tbaut

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

Tbaut avatar Sep 20 '21 10:09 Tbaut

  • 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.

FSM1 avatar Sep 20 '21 11:09 FSM1

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.

Tbaut avatar Sep 20 '21 12:09 Tbaut