This repository was archived by the owner on Sep 15, 2021. It is now read-only.
This repository was archived by the owner on Sep 15, 2021. It is now read-only.
File Transfer loses params option when using SSL #1206
Open
Description
When I run the following code without SSL, params
is passed as expected. When I run the same code and the same endpoint but with SSL, params
is not passed. Can anyone else reproduce that?
var options = {
fileKey: 'photo1',
fileName: 'imageName.jpg',
httpMethod: 'POST',
params: {user_id: user.user_id}
};
$cordovaFileTransfer.upload(AppConfig.apiHost + "/api/photo/", filePath, options,true)
.then(function (result) {
// Success!
$log.debug(result);
deferred.resolve(result);
}, function (err) {
// Error
$log.debug(err);
deferred.reject(err);
}, function (progress) {
// constant progress updates
$log.debug(progress);
});
I am using Cordova 6.0, Ionic 1.0.