Code Monkey home page Code Monkey logo

react-file-picker's People

Contributors

abocker avatar meinstein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-file-picker's Issues

No Typescript types

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 ๐Ÿ˜„

Image rotation

the problem occurs when images are captured from a device camera, these times can be arbitrarily rotated 90 degrees, making a vertical image horizontal

"extensions" doesn't seem to do anything

I have a custom file type ".transcript" and I am using the following code:

<FilePicker
extensions={['transcript']}
onChange={this.onChangeFile}
onError={(error: string) => this.props.setErrorDisplay(ErrorType.Error, error, "", null)}
maxSize={300}
>

When the file picker opens, it shows "all files":

image

Onchange result

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

Invalid "main" value in package.json

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.

Issue on running test with create-react-app.

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?

File size must be less than 2 MB.

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,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.