Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

const file = imageData.file is undefined #43

Open
1 task
MR314159 opened this issue Nov 21, 2022 · 0 comments
Open
1 task

const file = imageData.file is undefined #43

MR314159 opened this issue Nov 21, 2022 · 0 comments

Comments

@MR314159
Copy link

MR314159 commented Nov 21, 2022

Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.

  • I'm submitting a ...

    • bug report
  • Do you want to request a feature or report a bug?

  • What is the current behavior?

Example Code:
handleUpload() {
const PP = this.profilePictureRef.current;
const imageData = PP.getData();
const file = imageData.file;
}

imageData is set but imageData.file is undefined

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
    https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).

  • What is the expected behavior?

  • What is the motivation / use case for changing the behavior?

  • Please tell us about your environment:

    • Version: 1.0.1
    • Firefox XX
    • Language: react
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant