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

open failed: EACCES (Permission denied) #332

Open
wengki opened this issue May 6, 2022 · 5 comments
Open

open failed: EACCES (Permission denied) #332

wengki opened this issue May 6, 2022 · 5 comments

Comments

@wengki
Copy link

wengki commented May 6, 2022

I try to transfer document files (pdf,docx,...), and it's ok with API < 29. But now I always get 'open failed: EACCES (Permission denied)' when trying it on API >= 29

Here is my code:

window.resolveLocalFileSystemURL(fpath, (entry) => {
let options = new FileUploadOptions();
options.httpMethod = 'POST';
options.fileKey = 'file';
options.fileName = entry.name;
options.mimeType = entry.type;
options.params = {
id: 1
};

let fileTransfer = new FileTransfer();
fileTransfer.upload(entry.nativeURL, 'http://localhost/upload.php', (suc) => {
console.log(suc)
}, error => console.log(error), options);

}, error => console.log(error));

@phusting

This comment was marked as spam.

@phusting

This comment was marked as off-topic.

@breautek

This comment was marked as off-topic.

@reinaldoborin
Copy link

Having same problem.

@bemendozaa
Copy link

mismo problema

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

5 participants