File Chunker Control
Chunker Delegate Progress bar
The chunker uploader controls in "Delegate" mode (progress bar & circle ) delegate the upload of the individual chunk to an action (client,server,service) exposed by the web application.To perform the upload, simply prepare an action ,which handles the insertion of the binary data into the db or other storage, and use it within the "OnDelegateUploadChunkAction Event".The control triggers the event for each chunk in the "FileChunks" parameter.
eSpace Name
FileClientHandler_Lib
Description
A collection of block and client actions to handle files.
Listener block to download file from an http endpoint.
Parameters
Name
Type
Mandatory
TargetUrl
The url to fetch the resources.
Text
YES
FileName
The target file name with extension.
AutoDownloadFile
Indicate if the widget must trasmit and start download process to the browser.
Boolean
AutoStartStreamProcess
Indicate if the widget must start the stream reading process.
FetchRequestSettings
Fetch settings.
StreamFetch RequestConfig
NO
Events
OnComplete
Event triggered when the stream process complete.
Mandatory: NO
Data Type
StreamSize
The total stream size for the requested file.
Long Integer
StreamProcessedSize
The total parsed stream for the requested file.
StreamReadProgress
The percentage that indicate how much stream was parsed.
Decimal
DownloadUrl
The download url produced by the streamer. Its start always with blob:......
OnError
Event triggered when an error occurs.
ErrorMessage
The description of error.
OnProgress
Event triggered when the stream process progess.
OnStart
Event triggered when the stream process start.
Upload block that split file in chunks.
Accepts
A string with allowed mime types separated by "," ( ex: image/png, image/jpeg,....)
ChunkSizeInKB
The size of chunks to produce.
MaxFileSizeInKB
The max file size, if the selected file size is greater the control send the event OnSizeExceed.
IsMandatory
Check if the control is mandatory
StartChunkProcessWhenFileChange
Indicate if the chunk generation process must start where a file is selected, otherwise you can control the process with client action "StartFileChunkProcess".
AllowDrop
Indicate if the block must handle file drop.
OnChunkProcessStart
Event triggered when the chunk process starts.
OnChunksProcessDone
Event triggered when all chunks are generated.
Mandatory: YES
FileChunks
The list of chunks
FileChunk List
Event triggered when an error occurs in the chunk process or in the file processing.
OnFileChange
Event triggered when a file is selected
The selected filename.
FileMimeType
The selected file mime types.
FileSizeInKB
The selected file size in KB
Long integer
FileSizeInMB
The selected file size in MB
FileSizeInGB
The selected file size in GB
OnFileSelectedSizeExceed
Event triggered when the selected file size is greater than the MaxFileSizeInKB parameter.
FileSizeKB
MaxFileSizeKB
The max allowed size in KB
OnWrongFileTypeSelected
Event triggered when the selected file mime type is not contained in the Accepts parameter.
FileType
The selected file mime type
AllowedFileTypes
The allowed file types
Simulate Dictionary<int,binary>
Attributes
Attribute
Index
The index value.
Integer
Binary
The binary value
Binary Data
Simulate Dictionary<string,string>
Key
The key
Value
The value
Simulate Dictionary<string,List<string>>
Values
The list of values
Configuration for the fetch request
Method
The request method, e.g., GET, POST. Note that the Origin header is not set on Fetch requests with a method of HEAD or GET.
Mode
The mode you want to use for the request, e.g., cors, no-cors, or same-origin.
Cache
A string indicating how the request will interact with the browser's HTTP cache. The possible values, default, no-store, reload, no-cache, force-cache, and only-if-cached, are documented in the article for the cache property of the Request object.
Credentials
Controls what browsers do with credentials (cookies, HTTP authentication entries, and TLS client certificates). Must be one of the following strings:
omit
Tells browsers to exclude credentials from the request, and ignore any credentials sent back in the response (e.g., any Set-Cookie header).
same-origin
Tells browsers to include credentials with requests to same-origin URLs, and use any credentials sent back in responses from same-origin URLs. This is the default value.
include
Tells browsers to include credentials in both same- and cross-origin requests, and always use any credentials sent back in responses.
Headers
Any headers you want to add to your request, contained within a Headers object or an object literal with String values
DictionaryStrings List
Redirect
How to handle a redirect response:
follow: Automatically follow redirects. Unless otherwise stated the redirect mode is set to follow.
error: Abort with an error if a redirect occurs.
manual: Caller intends to process the response in another context. See WHATWG fetch standard for more information.
ReferrerPolicy
Specifies the referrer policy to use for the request. May be one of no-referrer, no-referrer-when-downgrade, same-origin, origin, strict-origin, origin-when-cross-origin, strict-origin-when-cross-origin, or unsafe-url.
Structure to handle chunks.
Binary data
Sequence
Integer that indicates the sequence of chunks
Range
The content range of the single chunk
Structure to handle the pickers' options.
The description to use in the picker ( Text File, Images,Videos, etc...)
Accept
The allowed mime types ( text/...., application/...)
Text List
Start the UploadChunker chunk generation process.
Input parameters
DataType
SingleFileChunkerId
The id of UploadChunker block
Yes
Cancel stream download process.
StreamDownloadId
The id of the stream download widget
Download the file.
Start stream download process.
Check if file pickers are supported.
At the moment Y2022 only Edge,Chrome,Opera for desktop support these features.
Output parameters
IsSelectFileSupported
Indicate if file picker is supported
IsSelectFolderSupported
Indicate if folder picker is supported
IsSaveFileSupported
Indicate if save file picker is supported
Save the file with the name and location specificied by user through a save dialog.
SuggestedFilename
The suggested file name to show in the save dialog
The mime type of the file
FilePickerOption
The binary data of the file
ExcludeAllOption
Bool to exclude All File ( *.* ) from the save dialog
A list of chunks to assemble and save.
Allow user to select a file without an input[type=file] or an upload block
AllowMultiple
WARNING WIP!!!!!!!!!!!
Types
The mime types allowed.
FilePickerOption List
Filename
The selected file's name.
The file binary
Allow user to select a file without an input[type=file] or an upload block. This action split the file in chunks.
ChunkSizeKB
The size of the chunks to produce.
The chunk list
Merge chunks and download the file.
Split a binary into chunks.
BinaryData
Chunks
Merge a list of chunks into single binary.
The produced binary.
Convert GB To KB
GB
The gb decimal value
KB
The size expressed in KB
Convert MB To KB
MB
The mb decimal value