Skip to content

Commit

Permalink
fix(uploader): Add the ability to upload files via PUT instead of POST (
Browse files Browse the repository at this point in the history
#239)

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

* Add the method Propery to FileUploaderOptions

* Added braces and removed whitespaces.
  • Loading branch information
jhiemer authored and valorkin committed Jun 6, 2016
1 parent 8133246 commit e068511
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/file-upload/file-item.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions components/file-upload/file-uploader.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface FileUploaderOptions {
isHTML5?:boolean;
filters?:Array<FilterFunction>;
headers?:Array<Headers>;
method?:string;
authToken?:string;
maxFileSize?:number;
queueLimit?:number;
Expand Down

0 comments on commit e068511

Please sign in to comment.