tisn.app icon indicating copy to clipboard operation
tisn.app copied to clipboard

Revamp image uploading.

Open AlbertoPdRF opened this issue 5 years ago • 3 comments

Probably using a cloud solution (Amazon S3, Cloudinary, etc.) for storing the images is a way better option.

Also, right now, when an image is selected by a user it gets directly uploaded to the server, regardless of if it's the one that ends up being used. The ones not used should be removed from the server somehow!

AlbertoPdRF avatar Apr 08 '20 08:04 AlbertoPdRF

To fully fix this is issue, I think that one or a combination of the following two points will be necessary:

  1. Clean up the Cloudinary folder of images that aren't used anymore, for instance: old user avatars or uploaded images that ended up not being used.
  2. Keep a registry of who uploaded which image and have some sort of archive. This would be another model on the database.

AlbertoPdRF avatar Apr 09 '20 19:04 AlbertoPdRF

It would also be nice to allow users to crop images before uploading them.

AlbertoPdRF avatar Apr 28 '20 12:04 AlbertoPdRF

I think we should adapt the upload process so that, on development mode, images are saved on disk instead of uploaded to Cloudinary.

AlbertoPdRF avatar Sep 10 '20 12:09 AlbertoPdRF