codimd icon indicating copy to clipboard operation
codimd copied to clipboard

Enhancement: arbitrary file upload (i.e. zip / doc / pdf / stl)

Open ccoenen opened this issue 7 years ago • 6 comments

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.

ccoenen avatar Nov 27 '16 11:11 ccoenen

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

SISheogorath avatar Oct 06 '17 18:10 SISheogorath

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 avatar Oct 09 '17 18:10 grmpyninja

@grmpyninja That's exactly what #506 is about ;)

Once it's merged, we can extend this as well, yes.

SISheogorath avatar Oct 09 '17 18:10 SISheogorath

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 👍

SISheogorath avatar Jan 31 '18 23:01 SISheogorath

Is this feature still developing?

lephix avatar May 28 '19 13:05 lephix

I'd also love to see this feature. Any news? :)

aslmx avatar Mar 22 '21 17:03 aslmx