Plugin : Files

Author:Rex.Rainbow

Download

Properties

Lines

  • Line count of each page.

Actions

Copy

Action:Copy

  • Copy file or directory.
    • Directory path ( string ) : Directory path without the name of the file in the Backendless file storage.
    • File name ( string ) : Name of the file. Set to "" to renane directory.
    • New name ( string ) : New name for the file or directory.

Delete

Action:Detete

  • Delete file or directory.
    • Directory path ( string ) : Directory path without the name of the file in the Backendless file storage.
    • File name ( string ) : Name of the file where the byte content should be written to. Set to "" to delete directory.

List

Action:Request in a range

  • Load in a range.
    • Start ( number ) : Start index, 0-based.
    • Lines ( number ) : Count of lines

List - 0. setting

Action:Set directory

  • Set listing directory path.
    • Directory path ( string ) : Directory path without the name of the file in the Backendless file storage.
    • Sub directory ( Combo ) : Include sub directory or not.
      • Options : ["","include sub folders"]

Action:Set pattern

  • Set listing pattern.
    • Pattern ( string ) : A pattern which the returned files and directories must match, which can include wildcard characters.

List - all

Action:Request all

  • Load all files list.

List - page

Action:Update current page

  • Update current page.

Action:Turn to next page

  • Turn to next page.

Action:Turn to previous page

  • Turn to previous page.

Load - page

Action:Turn to page

  • Turn to page.
    • Index ( number ) : Page index, 0-based.

Move

Action:Move

  • Move file or directory.
    • Directory path ( string ) : Directory path without the name of the file in the Backendless file storage.
    • File name ( string ) : Name of the file. Set to "" to renane directory.
    • New directory path ( string ) : New name for the file or directory.

Rename

Action:Rename

  • Rename file or directory.
    • Directory path ( string ) : Directory path without the name of the file in the Backendless file storage.
    • File name ( string ) : Name of the file. Set to "" to renane directory.
    • New name ( string ) : New name for the file or directory.

Upload

Action:Upload from file chooser

  • Upload file from file chooser to file storage.
    • File chooser ( object ) : File chooser object.
    • Directory path ( string ) : Directory path without the name of the file in the Backendless file storage.

Action:Upload from sprite

  • Upload image from sprite or canvas to firebase storage.
    • Sprite ( object ) : Sprite or canvas object.
    • Directory path ( string ) : Directory path without the name of the file in the Backendless file storage.
    • File name ( string ) : Name of the file where the byte content should be written to.

Action:Upload data URL

  • Upload data URI to firebase storage.
    • Data URI ( string ) : Data URI of file
    • Directory path ( string ) : Directory path without the name of the file in the Backendless file storage.
    • File name ( string ) : Name of the file where the byte content should be written to.

Action:Upload string

  • Upload string to firebase storage.
    • Content ( string ) : String content
    • Directory path ( string ) : Directory path without the name of the file in the Backendless file storage.
    • File name ( string ) : Name of the file where the byte content should be written to.

Expressions

Error

Expression:ErrorCode

  • Error code.

Expression:ErrorMessage

  • Error message.

List - for each

Expression:CurFileName

  • Get current file name in a For Each loop.

Expression:CurPublicUrl

  • Get current public url in a For Each loop.

Expression:CurDirectory

  • Get current directory in a For Each loop.

Expression:CurCreated

  • Get current created timestamp in a For Each loop.

Expression:CurFileSize

  • Get current file size in a For Each loop.

List - index

Expression:Index2FileName

  • Get file name by index.
    • Index ( number ) : Global index, 0-based.

Expression:Index2PublicUrl

  • Get public url by index.
    • Index ( number ) : Global index, 0-based.

Expression:Index2Directory

  • Get directory by index.
    • Index ( number ) : Global index, 0-based.

Expression:Index2Created

  • Get created timestamp by index.
    • Index ( number ) : Global index, 0-based.

Expression:Index2FileSize

  • Get file size by index.
    • Index ( number ) : Global index, 0-based.

Load - for each - index

Expression:CurStartIndex

  • Get start index in current received page.

Expression:LoopIndex

  • Get loop index in current received page.

Expression:CurFileIndex

  • Get the current file index in a For Each loop.

Result

Expression:LastDownloadURL

  • Get download URL of last action (upload/copy/move/rename) result.

URL

Expression:DownloadURL

  • Get download URL, add directory path in 1st parameter, fileName in 2nd parameter.

Conditions

Copy

Condition:On copy

  • Triggered when copy success.

Condition:On copy error

  • Triggered when copy error.

Delete

Condition:On deleted

  • Triggered when delete completed.

Condition:On deleted error

  • Triggered when delete error.

List

Condition:On get files list

  • Triggered when get files list success.

Condition:On get files list error

  • Triggered when get files list error.

List - for each

Condition:For each files

  • Repeat the event for each file of listing result.

Move

Condition:On move

  • Triggered when move success.

Condition:On move error

  • Triggered when move error.

Rename

Condition:On rename

  • Triggered when rename success.

Condition:On rename error

  • Triggered when rename error.

Upload

Condition:On upload

  • Triggered when uploading completed.

Condition:On upload error

  • Triggered when uploading error.