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

Safari and IOS File upload problem #12

Open
fildidi opened this issue Jul 4, 2016 · 1 comment
Open

Safari and IOS File upload problem #12

fildidi opened this issue Jul 4, 2016 · 1 comment

Comments

@fildidi
Copy link

fildidi commented Jul 4, 2016

Hello,
I have a problem when I am trying to upload a file in Safari and IOS. It gives me the following issue: FileConstructor is not a constructor (evaluating 'new File([blob], "png", {type: "image/png"})');
It seems like File is not supported by them. Do you think anybody can help me with that or have an alternative solution?
Just for reference, this is my code:
var blob = b64toBlob($scope.questionImgSrcCrop.split(",")[1], "image/png"); var file = new File([blob], "png", {type: "image/png"});

@kinstephen

@kinstephen
Copy link
Owner

Hello,

I don't have a solution and is not something I'll be able to get to anytime soon. If you provide a PR I'll update it accordingly for you.

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

2 participants