From 0fc9708e501f6eb126cdcc3d28aa89ebd3cb65ae Mon Sep 17 00:00:00 2001 From: Foncier Date: Thu, 7 Dec 2017 14:56:48 +0100 Subject: [PATCH 1/3] Add method option to the IFileUploadConfigFile interface --- types/ng-file-upload/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/ng-file-upload/index.d.ts b/types/ng-file-upload/index.d.ts index 85a055772b..263d75099e 100644 --- a/types/ng-file-upload/index.d.ts +++ b/types/ng-file-upload/index.d.ts @@ -268,6 +268,10 @@ declare module 'angular' { * @type {string} */ arrayKey?: string; + /** + * Add which HTTP method to use: 'POST' or 'PUT'(html5) + */ + method?: string; /** * Uploaded file size so far on the server * @type {string} From 845e56a5c351e40332932eacda3111946e3e3664 Mon Sep 17 00:00:00 2001 From: Foncier Date: Thu, 7 Dec 2017 15:15:17 +0100 Subject: [PATCH 2/3] Set IFileUploadConfigFile.method attribute as mandatory --- types/ng-file-upload/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/ng-file-upload/index.d.ts b/types/ng-file-upload/index.d.ts index 263d75099e..fc316e4320 100644 --- a/types/ng-file-upload/index.d.ts +++ b/types/ng-file-upload/index.d.ts @@ -253,6 +253,10 @@ declare module 'angular' { * @type {string} */ url: string; + /** + * Add which HTTP method to use: 'POST' or 'PUT'(html5) + */ + method: string; /** * This is to accommodate server implementations expecting nested data object keys in .key or [key] format. * Example: data: {rec: {name: 'N', pic: file}} sent as: rec[name] -> N, rec[pic] -> file @@ -268,10 +272,6 @@ declare module 'angular' { * @type {string} */ arrayKey?: string; - /** - * Add which HTTP method to use: 'POST' or 'PUT'(html5) - */ - method?: string; /** * Uploaded file size so far on the server * @type {string} From 900e0c87115cc6a7b93f850f2e3b3723c6577abb Mon Sep 17 00:00:00 2001 From: Foncier Date: Fri, 8 Dec 2017 17:12:09 +0100 Subject: [PATCH 3/3] Fix typo --- types/ng-file-upload/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/ng-file-upload/index.d.ts b/types/ng-file-upload/index.d.ts index fc316e4320..d17327dc7c 100644 --- a/types/ng-file-upload/index.d.ts +++ b/types/ng-file-upload/index.d.ts @@ -254,7 +254,7 @@ declare module 'angular' { */ url: string; /** - * Add which HTTP method to use: 'POST' or 'PUT'(html5) + * Add which HTTP method to use: 'POST' or 'PUT' (html5) */ method: string; /**