Version 3.0.0
These changes are not backward compatible in version 3.0.0:
-
You should rename
data
tofields
for$upload.upload()
The 'fields' option is added to$upload.upload()
to send form data fields along with files like. This is similar todata
option in the previous version.
You can still use thedata
option but it will be sent as a form data field with the namedata
to the server as one object. See the Readme file for more details. -
ng-file-rejected-model
option is renamed tong-model-rejected
in the$upload.upload()
service -
resetOnClick
option is removed and is true by default.
Other features added:
ng-file-select
now support accept attribute and ng-model-rejected will be set if the selected files do not match ng-accept wildcard.- 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