Some of our latest projects used file uploading feature. Whether this is an excel, an audio or an image file, the file uploading mechanism remains the same. In a web application an user selects a file and uploads it to the server. Browser sends this file as a multipart-form file attachment, which is then handled on server.
Sources of our solution with upload-link directive and uiUploader service you may find here.
Their usage is rather simple.
E.g. for upload-ink directive:
on-error="controller.uploadFailed(e)">Click here to upload an image</a>
Usage of uiUploader service is also easy:
// TODO: handle the result.
// result.data - contains the server response
// result.file - contains uploaded File or Blob instance.
In case when the first parameter is null the result.data contains the selected file content as a
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u