Add support for image (and generic file) upload #244

Open
ludagoo opened this Issue May 24, 2015 · 5 comments

Comments

Projects
None yet
4 participants
@ludagoo

ludagoo commented May 24, 2015

This is a feature request...

I think it would be cool to be able to drag and drop images into the chat. Then behind the curtain convos would upload it to the server and actually send a link to IRC. This would be a great addition to the auto loading of images that convos already does.


Comment from @jhthorsen: See also #90

@jhthorsen jhthorsen changed the title from Bilt in imgur to Add support for image upload May 25, 2015

@jhthorsen

This comment has been minimized.

Show comment
Hide comment
@jhthorsen

jhthorsen May 25, 2015

Collaborator

I agree. That would be very cool. Not sure when we get time to implement it though...

Collaborator

jhthorsen commented May 25, 2015

I agree. That would be very cool. Not sure when we get time to implement it though...

@jhthorsen jhthorsen self-assigned this May 28, 2015

@jhthorsen jhthorsen removed their assignment Sep 1, 2015

@jhthorsen jhthorsen added this to the batcode milestone Mar 31, 2016

@anonsubmitter

This comment has been minimized.

Show comment
Hide comment
@anonsubmitter

anonsubmitter Aug 14, 2016

Adding P2P file transfers using WebRTC and WebTorrent would be cool. No server between the sender and the recipient, so it's faster and more private. You could maybe borrow some code from FilePizza.

Adding P2P file transfers using WebRTC and WebTorrent would be cool. No server between the sender and the recipient, so it's faster and more private. You could maybe borrow some code from FilePizza.

@anonsubmitter

This comment has been minimized.

Show comment
Hide comment
@anonsubmitter

anonsubmitter Aug 14, 2016

Imgur compresses larger photos, so I think that I think either Kuuv.io (100 MB), imgbox (10 MB), ImgPile (50 MB), Lambda (50 MB), vgy.me (20 MB), tinyimg.io (10 MB), VoatPic.me (100 MB), abload.de (10 MB) or NyanIMG could be good to add for images that are of high resolution and large filesize. Postimage.org doesn't support large uploads, but it keeps the original filenames, which is nice. There's also a decentralized, open source image hosting site called ifps.pics.

Here are also a bunch of alternative image hosts:
https://voat.co/v/VoatUserGroup/comments/1149212
https://www.reddit.com/r/imguralternatives/top/?sort=top&t=all

And no, I'm not saying that we need to support all of these image hosts. One stable image host that doesn't compress high quality images should be enough and if more are added that's just a nice bonus that gives the user more choice and the image upload function more stability (in case a site closes down or a site's API changes to the point that image uploads from Convos don't work).

anonsubmitter commented Aug 14, 2016

Imgur compresses larger photos, so I think that I think either Kuuv.io (100 MB), imgbox (10 MB), ImgPile (50 MB), Lambda (50 MB), vgy.me (20 MB), tinyimg.io (10 MB), VoatPic.me (100 MB), abload.de (10 MB) or NyanIMG could be good to add for images that are of high resolution and large filesize. Postimage.org doesn't support large uploads, but it keeps the original filenames, which is nice. There's also a decentralized, open source image hosting site called ifps.pics.

Here are also a bunch of alternative image hosts:
https://voat.co/v/VoatUserGroup/comments/1149212
https://www.reddit.com/r/imguralternatives/top/?sort=top&t=all

And no, I'm not saying that we need to support all of these image hosts. One stable image host that doesn't compress high quality images should be enough and if more are added that's just a nice bonus that gives the user more choice and the image upload function more stability (in case a site closes down or a site's API changes to the point that image uploads from Convos don't work).

@jhthorsen jhthorsen changed the title from Add support for image upload to Add support for image (and generic file) upload Aug 15, 2016

@jhthorsen jhthorsen self-assigned this Aug 15, 2016

@jhthorsen

This comment has been minimized.

Show comment
Hide comment
@jhthorsen

jhthorsen Aug 15, 2016

Collaborator

Excellent ideas! Also DCC as we discussed yesterday would be nice to have, but I think the protocol is a bit complicated. Either way, I think I will implement my initial idea, since I think it will be the fastest route (for me) to get something working:

  • Drag/drop or click upload file. Select one or more files. Upload
  • Convos will receive the files and store them under something like convos/user@example.com/files
  • Convos generates a unique URL for each file
  • Convos will generate a message or fill in the input field with the URL to each of the files.

Each files should have a unique URL. I'm considering one of these:

Collaborator

jhthorsen commented Aug 15, 2016

Excellent ideas! Also DCC as we discussed yesterday would be nice to have, but I think the protocol is a bit complicated. Either way, I think I will implement my initial idea, since I think it will be the fastest route (for me) to get something working:

  • Drag/drop or click upload file. Select one or more files. Upload
  • Convos will receive the files and store them under something like convos/user@example.com/files
  • Convos generates a unique URL for each file
  • Convos will generate a message or fill in the input field with the URL to each of the files.

Each files should have a unique URL. I'm considering one of these:

@systemz64

This comment has been minimized.

Show comment
Hide comment
@systemz64

systemz64 Jan 26, 2017

Slack and Hipchat use s3 for their storage - it means you are not limited to images only and its offloaded. I can upload a word file just as easily. You could have this as a configurable option so that I could install my AWS credentials into the system and all storage would be in my aws account.

This feature would be a big plus point (whether s3 or not)

Slack and Hipchat use s3 for their storage - it means you are not limited to images only and its offloaded. I can upload a word file just as easily. You could have this as a configurable option so that I could install my AWS credentials into the system and all storage would be in my aws account.

This feature would be a big plus point (whether s3 or not)

@jhthorsen jhthorsen removed their assignment Oct 15, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment