- Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Hi!
How to embbed a CSRF TOKEN in form data?
app.controller('UploadPhoto', function($scope, $http, $fileUploader, CSRF_TOKEN) { // create a uploader with options var uploader = $scope.uploader = $fileUploader.create({ scope: $scope, // to automatically update the html. Default: $rootScope url: '/profile/me/photo', formData: [ { csrf_token: CSRF_TOKEN } ], filters: [ function (item) { // first user filter console.info('filter1'); return true; } ] });
Not work...
Help?
Metadata
Metadata
Assignees
Labels
No labels