filepreviews / filepreviews.js Goto Github PK
View Code? Open in Web Editor NEWDeprecated: JavaScript client library for the FilePreviews.io service
Home Page: http://filepreviews.io
License: MIT License
Deprecated: JavaScript client library for the FilePreviews.io service
Home Page: http://filepreviews.io
License: MIT License
This is somewhat obscure, but I'm working on a site that includes both your library and reactS3Uploader. Their code causes an error if withCredentials is set to undefined on an XMLHttpRequest. The spec also requires its value to initially be false.
It looks like you custom XMLHttpRequest code appears to result in withCredentials initially being undefined.
The result was that including filepreviews broke by other s3uploader.
Not sure the full cause of it, but the demo on JS Bin seems to currently be dead.
http://jsbin.com/losaf/39/edit?js,output
Uncaught TypeError: FilePreviews.getPreviewURL is not a function
After following the instructions in the Github README, I was able to install filepreviews into my project. However when I try to run it, I get this error Error: ENOENT: no such file or directory, lstat 'bower_components'
I have npm install
-ed and have everything up to date and during the install I saw bower_components
being referenced but is not longer in the project. Has anyone else run into this?
If the file url has spaces in it, the preview url generated by the API returns a non encoded url. The problem with this is that if the url has spaces, the link fails since it is not encoded.
For example, notice the first url that it is not encoded and does not work. The second url works since it doesn't have spaces.
A simple fix, could be this:
encodeURI(<previewURL>);
It's not a mayor issue, since this can be fixed on the client side of using the library.
Note: that their maybe other characters that may need encoding as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.