Skip to content

Version 3.0.0

Compare
Choose a tag to compare
@danialfarid danialfarid released this 04 Feb 17:10
· 632 commits to master since this release

These changes are not backward compatible in version 3.0.0:

  1. You should rename data to fields for $upload.upload()
    The 'fields' option is added to $upload.upload() to send form data fields along with files like. This is similar to data option in the previous version.
    You can still use the data option but it will be sent as a form data field with the name data to the server as one object. See the Readme file for more details.

  2. ng-file-rejected-model option is renamed to ng-model-rejected in the $upload.upload() service

  3. resetOnClick option is removed and is true by default.

Other features added:

  1. ng-file-select now support accept attribute and ng-model-rejected will be set if the selected files do not match ng-accept wildcard.
  2. ng-accept, ng-multuple and ng-capture can be dynamically assigned by a model value and if their value is changed then the file input will be reconstructed to reflect those changes.

Fixed #528 #527 #525 #523 #520 #519 #515 #504 #502 #499 #487 #486 #458 #449