ajax - How to send additional data with angularFileUpload -
i'm using angularfileupload module in project. working fine want sending additional data file/s can't.
var uploader = $scope.uploader = upload.upload({ url: 'api/photos/upload/propertyphoto', type:'post', data:{name:'my name'}, headers:{ csrf_token:csrf_token, 'x-xsrf-token':x_xsrf_token } });
photo uploading working fine. when receive data using $_post['name']
thats not work.
under circumstances using $_post['name']?
the difference can see code , (working) code don't have type: 'post', seems ok without it.
i have nodejs backend running express. express passes data values through node in request object , access via req.body.name.
are sure url calling backend correctly?
Comments
Post a Comment