# This is a combination of 3 commits.

# The first commit's message is:
feat(uploader): huge uploader update
- creted uploader options
- added `file type` support
- added headers to xhr
- rename FileUploaderSettings => FileUploaderOptionsInterface
- added public methods set Options
- created filter from set options
- added demo component

# The 2nd commit message will be skipped:

#	rename FileUploaderSettings => FileUploaderOptionsInterface

# The 3rd commit message will be skipped:

#	added public method setOptions
This commit is contained in:
Vojtěch Kaláb
2016-02-23 09:02:45 +01:00
committed by Dmitriy Shekhovtsov
parent ff6825c8cb
commit d938aa1c39
5 changed files with 377 additions and 35 deletions

View File

@@ -32,7 +32,7 @@ export class FileItem {
this.options = options;
this.file = new FileLikeObject(some);
this._file = some;
this.url = uploader.url;
this.url = uploader.options.url;
this._zone = new NgZone({ enableLongStackTrace: false });
}
@@ -134,7 +134,7 @@ export class FileItem {
public _onComplete(response:any, status:any, headers:any):void {
this.onComplete(response, status, headers);
if (this.uploader.removeAfterUpload) {
if (this.uploader.options.removeAfterUpload) {
this.remove();
}
}