meinstein / react-file-picker Goto Github PK
View Code? Open in Web Editor NEWSensible file input wrappers. Demo included.
Sensible file input wrappers. Demo included.
I am using this plugin in a Typescript project. Unfortunately, there are no types yet which makes it difficult to use.
Adding them would be greatly appreciated ๐
Getting 'regeneratorRuntime is not defined' error when using ImagePicker.
But FilePicker works properly. Can any one help
Any interest in adding support for multiple files?
Is it possible to add MIME type check support or would it be useful?
Thanks
the problem occurs when images are captured from a device camera, these times can be arbitrarily rotated 90 degrees, making a vertical image horizontal
Hello,
The result i get from the onChange in the imagepicker is a object like <img src='base46 blabla > . How can i get only the base url??
Thanks
I believe I'm having the same problem as described in this closed issue: #3
Tests aren't passing due to an error "Cannot find module 'react-file-picker' from XXX.js"
It seems to be because in package.json, the value of "main" is "index.js", when it should probably be "lib/index.js".
Thank you for any help on this.
Hi @meinstein, thanks for your library. So far, it's great.
I am using react-file-picker with create-react-app, but on running npm test
, I get the following error:
Cannot find module 'react-file-picker' from XXX.js
package.json
"dependencies": {
...
"react-file-picker": "0.0.5",
"react-scripts": "1.1.4",
...
},
I only experience this problem on running tests script (npm start is working fine), and the only dependency that fails is react-file-picker dependency, so not sure if this issue is due to the lack of compatibility of react-file-picker with jest moduleNameMapper configuration in react-scripts.
As I mentioned, library is working perfectly, so I would hate to move into another library, just because all tests on files importing the module are failing.
Could you provide some insight?
When I try to upload a file greater than 2MB it throws an error saying File size must be less than 2 MB. I have seen there is no prop for maxFileSize. How can we upload a file greater than 2MB?
Regrards,
Ah, IE11, when will we be free of you.
It looks like this is due to an IE11 bug. This existing
http://jsfiddle.net/lmeurs/2rEzF/
If you're interested in accepting contributions I can investigate further and knock up a PR.
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.