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

uploadFIle doesn't send parameters #521

Open
max763 opened this issue Nov 24, 2023 · 0 comments
Open

uploadFIle doesn't send parameters #521

max763 opened this issue Nov 24, 2023 · 0 comments

Comments

@max763
Copy link

max763 commented Nov 24, 2023

Hi silkimen,
when uploading a file the parameters as described (e.g.: {id:'12',message:'test'}) are not transferred as part of the multipart request.
In public-interface.js params: params are not handed over to > exec(onSuccess, onFail, 'CordovaHttpPlugin', 'uploadFiles', [url, but no params]

Would it be possible to hand it over to public CordovaHttpUpload() and send it out together with the files?
Best regards
Max

cordova.plugin.http.uploadFile("https://google.com/", {
id: '12',
message: 'test'
}, { Authorization: 'OAuth2: token' }, filePath, name, function(response) {
console.log(response.status);
}, function(response) {
console.error(response.error);
});

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