Added uploadFilesInSingleRequest to upload queued files in one request

This commit is contained in:
Koen van der Linden
2018-03-17 12:22:17 +01:00
parent fb48f4411d
commit 5a6a4471f3
4 changed files with 17209 additions and 46 deletions

View File

@@ -18,8 +18,9 @@ export class SimpleDemoComponent {
constructor (){
this.uploader = new FileUploader({
url: URL,
disableMultipart: true, // 'DisableMultipart' must be 'true' for formatDataFunction to be called.
formatDataFunctionIsAsync: true,
disableMultipart: false, // 'DisableMultipart' must be 'true' for formatDataFunction to be called.
uploadFilesInSingleRequest: true,
formatDataFunctionIsAsync: false,
formatDataFunction: async (item) => {
return new Promise( (resolve, reject) => {
resolve({