Search Posts

Category: angular-file-upload

Create Image for canvas from href from file already uploaded

I am creating thumbnail images from angular-file-upload. I would like to copy the data from the image file to a new canvas where my user is going to resize the image and add additional meta data to a form and send it to the server. In the directive for the drag and drop I’m putting an angular.copy (orgImg) of the image into and array on the parent scope. In the uploader.uploadItem(item) function is where I […]

file not binding to angularjs service using FormData

how to file not binding to angularjs service using FormData I am trying to upload a file using angularjs and spring 3, I have written a service which is not binding the selected file. I don’t know what mistake I have been doing, please help me to solve this problem. I am using commonsmultipart for uploading the files. following are the fileUploadService and controller codes. MyApp.service(‘fileUploadService’, function ($http, $q) { this.uploadFileToUrl = function (file, uploadUrl, […]

angularjs fileupload with promise not working in spring mvc

how to angularjs fileupload with promise not working in spring mvc I am uploading a file(word doc/pdf) using angularjs and spring3.0, when I submit the form using ng-submit() file data is not posting to angular controller, I have searched and tried here some examples but those are not working for me. can someone help to solve this problem. thanks in advance. <form id=”register-form” role=”form” style=”display: none;” ng-submit=”regSubmit()”> <div class=”form-group”> <input type=”text” name=”name” id=”username” tabindex=”1″ class=”form-control” […]