Closed thatkookooguy closed 8 years ago
https://www.npmjs.com/package/file-type#supported-file-types We need to return the mime\type of files from our server in order to understand if the file can be opened or not.
text
image
other
font
those are the file types kibibit is going to support for now
next step, might be adding some basic documents previews.
pdf, doc, excel
audio
video
Some additional info: http://webodf.org/ https://github.com/winkerVSbecks/angular-pdf-viewer http://pdfobject.com/ https://github.com/mozilla/pdf.js https://www.npmjs.com/package/mime-types https://www.npmjs.com/package/send (relates to #80 ) Related Issues: [x] #80 [x] #79 [x] #18 [x] #81 [x] #95 [x] #99 [x] #82
Some additional info:
I closed a previous clone for this: #27 (referencing for further info)
finished! woot woot!
HANDLE FILES BY TYPE
FEATURE
https://www.npmjs.com/package/file-type#supported-file-types We need to return the mime\type of files from our server in order to understand if the file can be opened or not.
text
, show a text editor on client sideimage
, show a image viewerother
, show an error (this is special!) or a download link?font
, show a font preview (http://bl.ocks.org/eweitnauer/7324712)those are the file types kibibit is going to support for now
next step, might be adding some basic documents previews.
pdf, doc, excel
and more.audio
, show a audio player (https://open.521dimensions.com/amplitudejs)video
, stream the video using a video player (http://www.videogular.com/)