imgbi / img.bi

img.bi main website
GNU General Public License v3.0
194 stars 29 forks source link

Album support #12

Open IpsmLorem opened 9 years ago

IpsmLorem commented 9 years ago

It would be neat to have album (photo grouping) support.

As a user I can upload several pictures, in several times if needed I order to have a unique URL to share and access the whole album

komachi commented 9 years ago

Nice idea, I'll add that later.

IpsmLorem commented 9 years ago

To make things easier to implement, maybe consider a picture as a single picture album. Then everything is an album with a unique URL. Maybe only the creator of the album may add pictures later. When creating an album a token is stored in the localstorage to authenticate the author and let him add pictures of change the lifetime.

komachi commented 9 years ago

It's not possible that way. Links must contain password for each picture, format is /#/id!pass. So albums probably will be like /#/id1!pass1/id2!pass2/id3!pass3/... or maybe something else, that way you can make albums with any pictures you want, even if you are not uploader. I'll think about it.

IpsmLorem commented 9 years ago

Maybe like https://img.bi/#/[picId]![Password] for a single picture and https://img.bi/#/a/[albumId]![wholeAlbumPassword] for album. Maybe only the autor could add pictures later (similar system used to authenticate the remove command by rmpass in sessionStorage)

komachi commented 9 years ago

Password used for encryption and decryption, that way you'll need re-encrypt all pictures and upload them again if you want to add something to album. Rmpass used for authentication for removing a cipher text from server, it has no deal with the picture itself.

IpsmLorem commented 9 years ago

Rmpass (or similare system) could be used to authenticate not only a removal but an update too. What about adding new pictures with the same key than previous pics in the album ? You will not have to re-encrypt all past pic then.