meteor-file-collection icon indicating copy to clipboard operation
meteor-file-collection copied to clipboard

View documents in browser instead of download,

Open mbateman opened this issue 8 years ago • 2 comments

Thanks a lot @vsivsi for such a powerful package.

I'm trying to use your package to store documents in mongodb which does very well. My question is can I open a document in a new tab in the browser instead of downloading it? The usual method of missing off ?download=true and including target="_blank" doesn't seem to work: it downloads a file but with the md5 name as the file name.

This is probably obvious but I can't get the usual approaches to work.

Thanks

mbateman avatar Jan 05 '17 18:01 mbateman

Sorry about this, but a little more research revealed that it looks like this is only possible with pdfs. However, if you know something to the contrary, I would like to know.

Thanks.

mbateman avatar Jan 05 '17 18:01 mbateman

What other kind of documents are you thinking of, MSWord .doc / .docx files? This is out of scope for supporting this package, but I bet there is a Javascript MSWord viewer out there somewhere... Maybe this? https://blogs.office.com/2013/04/10/office-web-viewer-view-office-documents-in-a-browser/

vsivsi avatar Jan 05 '17 19:01 vsivsi