This component is part of a package. To use this component you will need to install all of the following components;
To use this component you will need to create the following configuration;
ResumableJS
In the ResumableJS widget that is used in the front-end you will need to use the following 2 values for the following properties:
For further instructions about setting up the front-end please read the ResumableJS documentation.
note: The Action GetHostOrigin is part of the ResumableJS component
ResumableJS Core - Azure Storage Account
To finalize the setup of this component you will need to configure at least 3 Site Properties. The following list goes into detail about all available Site Properties:
Stitching process
This chapter will go into some details about the stitching process.
After a file is completed (as indicated by the IsCompleted property of the ResumableFile entity) you can (automatically) start the stitching process by calling one of the StitchFile* Service Actions. It's recommended to use the Timer variants as stitching can take some time for extremely large files.
The timer is started by creating a record in the ResumableFileTimer entity. This entity will act as a queue should multiple files need to be stitched. A BPT proces will start on creation of the record and Wake the stitching timer. We are using this construction so that we only run the timer when needed and because a timer has the capability of waking itself when a timeout threshold has passed.
The timer will query all the outstanding files ready for stitching and will then start appending outstanding chunks to the (if needed created) blob. Should this process take a long time then the timer will wake itself and stop the current proces. The new timer process will continue where the old one left of. In case of an error during the stitching process the error will be logged in both the timer record as well in the ResumableFile record. This file will then be excluded from further stitching. You will manually need to fix the error before being able to continue the stitching process.
The stitching itself is done entirely via the Storage Account. No data will transfer between the Azure Storage Account and your OutSystems platform. This results in the most speedy and efficient stitching process.
Note that the stitched blob is of a different type on the Storage Account then a regular blob. This should however not affect the normal operations on this blob.