Add the ability to upload files via PUT instead of POST #239
@@ -31,6 +31,9 @@ export class FileItem {
|
|||||||
this.options = options;
|
this.options = options;
|
||||||
this.file = new FileLikeObject(some);
|
this.file = new FileLikeObject(some);
|
||||||
this._file = some;
|
this._file = some;
|
||||||
|
if (uploader.options && uploader.options.method) {
|
||||||
|
this.method = uploader.options.method;
|
||||||
|
}
|
||||||
this.url = uploader.options.url;
|
this.url = uploader.options.url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ export interface FileUploaderOptions {
|
|||||||
isHTML5?:boolean;
|
isHTML5?:boolean;
|
||||||
filters?:Array<FilterFunction>;
|
filters?:Array<FilterFunction>;
|
||||||
headers?:Array<Headers>;
|
headers?:Array<Headers>;
|
||||||
|
method?:string;
|
||||||
authToken?:string;
|
authToken?:string;
|
||||||
maxFileSize?:number;
|
maxFileSize?:number;
|
||||||
queueLimit?:number;
|
queueLimit?:number;
|
||||||
|
|||||||
Reference in New Issue
Block a user