Add support for image (and generic file) upload #244
Comments
|
I agree. That would be very cool. Not sure when we get time to implement it though... |
|
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. |
|
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: 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). |
|
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:
Each files should have a unique URL. I'm considering one of these: |
|
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) |
- Replaces Convos::Plugin::Paste - Defined uploadFile and getFile endpoints - Add /file/:uid/:fid endpoint
As a user, I would like to upload files, closes #244
|
@anonsubmitter: I'm not going to add "crunching" of the images in this iteration. The files gets uploaded and stored exactly how you upload it. Please submit a new issue in 2020, if that's not good enough. I completely dropped "P2P file transfers", since it's too complicated and I don't really see the benefit. An uploaded file will be stored on the Convos server and a link is shared in the channel or private conversation. The logic is in a plugin though, so you can override the logic however you like. The file URL looks like this: https://example.com/file/2/1B2M2Y8sgTpgmY7P, where "2" is the UID of the user (keeping the email private) and a hash afterwards, which makes it incredible hard to guess the URL. I'm reopening this issue though, since there are some things to figure out:
|
- Add correct filename to downloaded files - Add required class name "paste" to <pre>
...since the Convos admin probably need to set it in the reverse proxy as well.
|
It seems like @marcusramberg is able to upload from his iPhone, so I'm closing this for now. |
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
The text was updated successfully, but these errors were encountered: