I am using $cordovaFileTransfer.upload()
to upload a picture from a device to my server. In documentation it says that it excepts these params: server, filePath, options
. I need to pass in some extra custom params: like user_id
, for example. Does anyone know if it's possible to do? Thank you.
相关问题
- angularJS: ui-router equivalent to $location.searc
- Separate AngularJS Controllers Into Separate Files
- Angular ngAnimate not working first time on page l
- Ionic Spinner not showing up
- Upload file to Google Cloud Storage using AngularJ
相关文章
- Passing variable through URL with angular js
- Watch entire object (deep watch) with AngularJS
- Angular ng-if change span text
- Can ng-show directive be used with a delay
- AngularJS $routeParams vs $stateParams
- Multiple parameters in AngularJS $resource GET
- How to set class/style of accordion heading in Ang
- PUT to S3 with presigned url gives 403 error
You need to use the 'params' property, like this:
Hope this helps.
You can add "params" to options object, for example :
You can send those custom parameters in the options object, doing something like this: