codimd
codimd copied to clipboard
Enhancement: arbitrary file upload (i.e. zip / doc / pdf / stl)
As discussed in the image upload pull request, I'd love to see this extended to arbitrary files. If I drag in an image, it becomes an image tag, if it's any other filetype, it becomes a regular Link.
This sounds possible and not too complicated with integrated object storage like S3 and with #506 it should be possible for all self-hosted instance. The default imgur doesn't allow to do so.
Here is a place to start if we are looking for an implementation:
https://github.com/hackmdio/hackmd/blob/3b8f4bc1a256733361e29be16a48e39d41f7c420/lib/web/imageRouter.js#L41-L75
it might make sense to extend a little bit S3 integration and allow to use custom S3-compatible software like https://github.com/minio/minio
it'd be both secure (self-hosted version) and universal.
@grmpyninja That's exactly what #506 is about ;)
Once it's merged, we can extend this as well, yes.
Now #506 is merged and also #691 provides a basic possibility to extend uploads. Of course there are some changes needed as pdfs shouldn't be embedded as pictures, but the potential is there.
Only an implementation is missing. Contributions are welcome 👍
Is this feature still developing?
I'd also love to see this feature. Any news? :)