fix(uploader): Add the ability to upload files via PUT instead of POST (#239)

* Add the ability to upload files via PUT instead of POST

* Add the method Propery to FileUploaderOptions

* Added braces and removed whitespaces.
This commit was merged in pull request #239.
This commit is contained in:
Johannes Hiemer
2016-06-06 13:10:13 +02:00
committed by Dmitriy Shekhovtsov
parent 8133246439
commit e068511917
2 changed files with 4 additions and 0 deletions

View File

@@ -31,6 +31,9 @@ export class FileItem {
this.options = options;
this.file = new FileLikeObject(some);
this._file = some;
if (uploader.options && uploader.options.method) {
this.method = uploader.options.method;
}
this.url = uploader.options.url;
}

View File

@@ -22,6 +22,7 @@ export interface FileUploaderOptions {
isHTML5?:boolean;
filters?:Array<FilterFunction>;
headers?:Array<Headers>;
method?:string;
authToken?:string;
maxFileSize?:number;
queueLimit?:number;