AWS Lambda backend

We want to use the Webix document manager with our AWS Lambda backend. However, Lambda puts a limit of 6MB on request payloads. To circumvent this issue we want to write custom upload logic that

  1. sends to the Lambda backend: file upload location, file name, mime type and size.
  2. the backend validates the data and if alright generates a presigned S3 url
  3. the file is streamed directly from the frontend to S3

How can we adapt webix for this use case?

Has someone used the webix docmanager with AWS? Lambda has a max payload size of 6MB, API Gateway of 10MB. Since there is still no reply, i assume the webix docmanager is not suitable for using with a backend at AWS if you want to upload large files?

Good day @Jonas ,
The Filemanager/Docmanager uses an uploader view inside for files uploading, which sends the whole file by default.
You could try splitting a large file into chunks and send it in a thread.

Have a look at an example with a separate uploader view based on this article: Code Snippet .

In the Docmanager, the uploading logic is placed in the Upload service where we can change the default logic with something similar too.
Here is an example that you could use as a base that only demonstrates how the file can be separated and sent to the backend: Code Snippet .
Note that we prevent the default logic by returning false and calling a custom function in the onBeforeFileAdd() event of the uploader and therefore the subsequent file loading events won’t fire (onAfterFileAdd(), onUploadComplete(), onFileUpload() ). So, after uploading the last chunk of the file and server response, you could either manually call the original eventы (if there are no conflicts) or call the custom events/methods that will repeat the original logic.