You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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));
The text was updated successfully, but these errors were encountered: