apache / apache/cordova-plugin-file-transfer

cordova-plugin-file-transfer is not working with cordova 11

Open
#337 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
606
Forks
874
PR merge metrics
No merged PRs in 30d

Description

cordova-plugin-file-transfer is not working with cordova 11
My code is

upload(){
var ft = new Transfer();
var options = {
fileKey: 'file',
fileName: 'filename.jpg',
params:{operatiune:'uploadpoza'}
}
ft.upload(this.imageURL,encodeURI("https://www.myserver.com/test.php"),options)
.then((data) => {
// success
alert("image send:"+this.imageURL);
}, (err) => {
// error
alert("err: "+JSON.stringify(err));
})
}

i am using latest cordova version i am getting error **Filetransfer is not defined** i think its deprecated in latest version
if you are not giving support with latest version can you give me alternate solution

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the upload() example with Cordova 11 and the current cordova-plugin-file-transfer package, focusing on the reported “Filetransfer is not defined” error. Check whether the plugin exposes the Transfer API under this Cordova version; done means documenting confirmed compatibility or a supported alternative, if one exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.