file
Last updated
Was this helpful?
Last updated
Was this helpful?
(plugins.file)
The file management plugin offers a comprehensive toolkit for managing files and folders both locally and remotely. It supports operations such as creating, reading, modifying, and deleting files while accommodating various formats, including text, binary, and XML. Advanced features like encoding, content streaming, and size management are also integrated to enhance file interactions on both the client and server sides.
Users can perform essential tasks such as appendToTXTFile
, writeFile
, and writeXMLFile
, which allow appending, creating, or modifying files efficiently. The plugin also supports creating temporary files through createTempFile
and managing folder contents with getFolderContents
. Folder operations include recursive copying using copyFolder
and deletion with deleteFolder
, all while providing detailed file attributes such as modification dates via getModificationDate
and sizes with getFileSize
. Flexible filtering options enable targeted retrieval of folder contents, enhancing workflow precision.
For interactive use, the plugin facilitates file selection dialogs through showFileOpenDialog
, supporting multiselect and file type filters, with customizable callback functionality. Large files can be streamed directly to the browser using streamFile
without consuming excessive memory, ensuring optimal performance for downloads or inline viewing. Temporary file handling via trackFileForDeletion
automates cleanup processes upon solution closure, contributing to resource efficiency.
,
Appends a string given in parameter to a file, using default platform encoding.
Appends a string given in parameter to a file, using the specified encoding.
Appends a string given in parameter to a file, using default platform encoding.
Appends a string given in parameter to a file, using the specified encoding.
Returns a JSFile instance corresponding to an alternative representation of a file (for example a string).
Convenience return to get a JSFile representation of a server file based on its path.
Copies the source file to the destination file.
Copies the sourcefolder to the destination folder, recursively.
Creates a JSFile instance.
Creates the folder by the given pathname, including any necessary but nonexistent parent folders.
Creates a temporary file on disk.
Removes a file from disk.
Deletes a folder from disk recursively.
Returns the default upload location path of the server.
Returns an Array of JSFile instances correponding to the file system root folders.
Returns the size of the specified file.
Returns an array of JSFile instances corresponding to content of the specified folder.
Returns an array of JSFile instances corresponding to content of the specified folder.
Returns an array of JSFile instances corresponding to content of the specified folder.
Returns an array of JSFile instances corresponding to content of the specified folder.
Returns an array of JSFile instances corresponding to content of the specified folder.
Returns an array of JSFile instances corresponding to content of the specified folder.
Returns an array of JSFile instances corresponding to content of the specified folder.
Returns an array of JSFile instances corresponding to content of the specified folder.
Returns an array of JSFile instances corresponding to content of the specified folder.
Returns an array of JSFile instances corresponding to content of the specified folder.
Returns a JSFile instance corresponding to the home folder of the logged in used.
Returns the modification date of a file.
Returns an array of JSFile instances corresponding to content of the specified folder on the server side.
Returns an array of JSFile instances corresponding to content of the specified folder on the server side.
Returns an array of JSFile instances corresponding to content of the specified folder on the server side.
Returns an array of JSFile instances corresponding to content of the specified folder on the server side.
Returns an array of JSFile instances corresponding to content of the specified folder on the server side.
Returns an array of JSFile instances corresponding to content of the specified folder on the server side.
Returns an array of JSFile instances corresponding to content of the specified folder on the server side.
Returns an array of JSFile instances corresponding to content of the specified folder on the server side.
Returns an array of JSFile instances corresponding to content of the specified folder on the server side.
Returns an array of JSFile instances corresponding to content of the specified folder on the server side.
Moves the file from the source to the destination place.
Opens the given local file.
Opens the given local file.
Opens the given data as a file.
Opens the given data as a file.
Reads all or part of the content from a binary file.
Reads all or part of the content from a binary file.
Reads all or part of the content from a binary file.
Reads all or part of the content from a binary file.
Reads all or part of the content from a binary file.
Read all content from a text file.
Read all content from a text file.
Read all content from a text file.
Read all content from a text file.
Read all content from a text file.
Shows a file open dialog.
Shows a file open dialog.
Shows a file open dialog.
Shows a file open dialog.
Shows a file open dialog.
Shows a file open dialog.
Shows a file open dialog.
Shows a file open dialog.
Shows a file open dialog.
Shows a file open dialog.
void
Stream the given file(path) to the browser with content-disposition:attachment This will not load in the file fully into memory but only stream it right from disk.
void
String the given file(path) to the browser you can provide the content disposition how this should be send (inline or as an attachment) This will not load in the file fully into memory but only stream it right from disk.
void
String the given file(path) to the browser you can provide the content disposition how this should be send (inline or as an attachment) This will not load in the file fully into memory but only stream it right from disk.
void
If the client's solution is closed, the file given to this method will be deleted.
Writes the given file to disk.
Writes the given file to disk.
Writes the given file to disk.
Writes the given file to disk.
Writes data into a text file.
Writes data into a text file.
Writes data into a text file.
Writes data into a text file.
Writes data into a text file.
Writes data into a text file.
Writes data into an XML file.
Writes data into an XML file.
Writes data into an XML file.
Writes data into an XML file.
Appends a string given in parameter to a file, using default platform encoding.
Parameters
Sample
Appends a string given in parameter to a file, using the specified encoding.
Parameters
Sample
Appends a string given in parameter to a file, using default platform encoding.
Parameters
Sample
Appends a string given in parameter to a file, using the specified encoding.
Parameters
Sample
Returns a JSFile instance corresponding to an alternative representation of a file (for example a string).
Parameters
Sample
Convenience return to get a JSFile representation of a server file based on its path.
Parameters
Sample
Copies the source file to the destination file. Returns true if the copy succeeds, false if any error occurs.
Parameters
Sample
Copies the sourcefolder to the destination folder, recursively. Returns true if the copy succeeds, false if any error occurs.
Parameters
Sample
Creates a JSFile instance. Does not create the file on disk.
Parameters
Sample
Creates the folder by the given pathname, including any necessary but nonexistent parent folders. Note that if this operation fails it may have succeeded in creating some of the necessary parent folders. Will return true if it could make this folder or if the folder did already exist.
Parameters
Sample
Creates a temporary file on disk. A prefix and an extension are specified and they will be part of the file name.
Parameters
Sample
Removes a file from disk. Returns true on success, false otherwise.
Parameters
Sample
Deletes a folder from disk recursively. Returns true on success, false otherwise. If the second parameter is set to true, then a warning will be issued to the user before actually removing the folder.
Parameters
Sample
Returns the default upload location path of the server.
Sample
Returns an Array of JSFile instances correponding to the file system root folders.
Sample
Returns the size of the specified file.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns a JSFile instance corresponding to the home folder of the logged in used.
Sample
Returns the modification date of a file.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder on the server side. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder on the server side. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder on the server side. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder on the server side. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder on the server side. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder on the server side. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder on the server side. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder on the server side. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder on the server side. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Returns an array of JSFile instances corresponding to content of the specified folder on the server side. The content can be filtered by optional name filter(s), by type, by visibility and by lock status.
Parameters
Sample
Moves the file from the source to the destination place. Returns true on success, false otherwise.
Parameters
Sample
Opens the given local file.
Smart Client: launches the default OS associated application to open an existing local file. Web Client: the (server local) file will open inside the browser - if supported (sent using "Content-disposition: inline" HTTP header).
Parameters
Sample
Opens the given local file.
Smart Client: launches the default OS associated application to open an existing local file. Web Client: the (server local) file will open inside the browser - if supported (sent using "Content-disposition: inline" HTTP header).
Parameters
Sample
Opens the given data as a file.
Smart Client: writes the data to a temporary file, then launches the default OS associated application to open it. Web Client: the data will open as a file inside the browser - if supported (sent using "Content-disposition: inline" HTTP header).
Parameters
Sample
Opens the given data as a file.
Smart Client: writes the data to a temporary file, then launches the default OS associated application to open it. Web Client: the data will open as a file inside the browser - if supported (sent using "Content-disposition: inline" HTTP header).
Parameters
Sample
Reads all or part of the content from a binary file. If a file name is not specified, then a file selection dialog pops up for selecting a file. (Web Enabled only for a JSFile argument)
Sample
Reads all or part of the content from a binary file. If a file name is not specified, then a file selection dialog pops up for selecting a file. (Web Enabled only for a JSFile argument)
Parameters
Sample
Reads all or part of the content from a binary file. If a file name is not specified, then a file selection dialog pops up for selecting a file. (Web Enabled only for a JSFile argument)
Parameters
Sample
Reads all or part of the content from a binary file. If a file name is not specified, then a file selection dialog pops up for selecting a file. (Web Enabled only for a JSFile argument)
Parameters
Sample
Reads all or part of the content from a binary file. If a file name is not specified, then a file selection dialog pops up for selecting a file. (Web Enabled only for a JSFile argument)
Parameters
Sample
Read all content from a text file. If a file name is not specified, then a file selection dialog pops up for selecting a file. The encoding can be also specified. (Web Enabled only for a JSFile argument)
Sample
Read all content from a text file. If a file name is not specified, then a file selection dialog pops up for selecting a file. The encoding can be also specified. (Web Enabled only for a JSFile argument)
Parameters
Sample
Read all content from a text file. If a file name is not specified, then a file selection dialog pops up for selecting a file. The encoding can be also specified. (Web Enabled only for a JSFile argument)
Parameters
Sample
Read all content from a text file. If a file name is not specified, then a file selection dialog pops up for selecting a file. The encoding can be also specified. (Web Enabled only for a JSFile argument)
Parameters
Sample
Read all content from a text file. If a file name is not specified, then a file selection dialog pops up for selecting a file. The encoding can be also specified. (Web Enabled only for a JSFile argument)
Parameters
Sample
Shows a file open dialog. Filters can be applied on what type of files can be selected. (Web Enabled, you must set the callback method for this to work)
Parameters
Sample
Shows a file open dialog. Filters can be applied on what type of files can be selected. (Web Enabled, you must set the callback method for this to work)
Parameters
Sample
Shows a file open dialog. Filters can be applied on what type of files can be selected. (Web Enabled, you must set the callback method for this to work)
Parameters
Sample
Shows a file open dialog. Filters can be applied on what type of files can be selected. (Web Enabled, you must set the callback method for this to work)
Parameters
Sample
Shows a file open dialog. Filters can be applied on what type of files can be selected. (Web Enabled, you must set the callback method for this to work)
Parameters
Sample
Shows a file open dialog. Filters can be applied on what type of files can be selected. (Web Enabled, you must set the callback method for this to work)
Parameters
Sample
Shows a file open dialog. Filters can be applied on what type of files can be selected. (Web Enabled, you must set the callback method for this to work)
Parameters
Sample
Shows a file open dialog. Filters can be applied on what type of files can be selected. (Web Enabled, you must set the callback method for this to work)
Parameters
Sample
Shows a file open dialog. Filters can be applied on what type of files can be selected. (Web Enabled, you must set the callback method for this to work)
Parameters
Sample
Shows a file open dialog. Filters can be applied on what type of files can be selected. (Web Enabled, you must set the callback method for this to work)
Parameters
Sample
Stream the given file(path) to the browser with content-disposition:attachment This will not load in the file fully into memory but only stream it right from disk. This can be any filepath on the server, but only the simple file name is exposed as the content disposition header filename. This will throw an exception if anything goes wrong, like the given file is not valid/found.
Parameters
Returns: void
String the given file(path) to the browser you can provide the content disposition how this should be send (inline or as an attachment) This will not load in the file fully into memory but only stream it right from disk. This can be any filepath on the server, but only the simple file name is exposed. This will throw an exception if anything goes wrong, like the given file is not valid/found.
Parameters
Returns: void
String the given file(path) to the browser you can provide the content disposition how this should be send (inline or as an attachment) This will not load in the file fully into memory but only stream it right from disk. This can be any filepath on the server, but only the simple file name is exposed. This will throw an exception if anything goes wrong, like the given file is not valid/found. Give the browser target if you want to open the file inside another tab, most usefull in 'inline' content disposition mode.
Parameters
Returns: void
If the client's solution is closed, the file given to this method will be deleted. This can be a remote or local file.
This can be used to have temp files within a client that will be cleaned up when the solution is closed. So they live as long as the client has its solution open.
Parameters
Returns: void
Sample
Writes the given file to disk.
If "file" is a JSFile or you are running in Smart Client, it writes data into a (local) binary file.
If you are running in Web Client and "file" is a String (like 'mypdffile.pdf' to hint the browser what it is) the user will get prompted by the browser to save the file (sent using "Content-disposition: attachment" HTTP header). If it is a JSFile instance in this case it will be saved as a file on the server.
Parameters
Sample
Writes the given file to disk.
If "file" is a JSFile or you are running in Smart Client, it writes data into a (local) binary file.
If you are running in Web Client and "file" is a String (like 'mypdffile.pdf' to hint the browser what it is) the user will get prompted by the browser to save the file (sent using "Content-disposition: attachment" HTTP header). If it is a JSFile instance in this case it will be saved as a file on the server.
Parameters
Sample
Writes the given file to disk.
If "file" is a JSFile or you are running in Smart Client, it writes data into a (local) binary file.
If you are running in Web Client and "file" is a String (like 'mypdffile.pdf' to hint the browser what it is) the user will get prompted by the browser to save the file (sent using "Content-disposition: attachment" HTTP header). If it is a JSFile instance in this case it will be saved as a file on the server.
Parameters
Sample
Writes the given file to disk.
If "file" is a JSFile or you are running in Smart Client, it writes data into a (local) binary file.
If you are running in Web Client and "file" is a String (like 'mypdffile.pdf' to hint the browser what it is) the user will get prompted by the browser to save the file (sent using "Content-disposition: attachment" HTTP header). If it is a JSFile instance in this case it will be saved as a file on the server.
Parameters
Sample
Writes data into a text file. (Web Enabled: file parameter can be a string 'mytextfile.txt' to hint the browser what it is, if it is a JSFile instance it will be saved on the server)
Parameters
Sample
Writes data into a text file. (Web Enabled: file parameter can be a string 'mytextfile.txt' to hint the browser what it is, if it is a JSFile instance it will be saved on the server)
Parameters
Sample
Writes data into a text file. (Web Enabled: file parameter can be a string 'mytextfile.txt' to hint the browser what it is, if it is a JSFile instance it will be saved on the server)
Parameters
Sample
Writes data into a text file. (Web Enabled: file parameter can be a string 'mytextfile.txt' to hint the browser what it is, if it is a JSFile instance it will be saved on the server)
Parameters
Sample
Writes data into a text file. (Web Enabled: file parameter can be a string 'mytextfile.txt' to hint the browser what it is, if it is a JSFile instance it will be saved on the server)
Parameters
Sample
Writes data into a text file. (Web Enabled: file parameter can be a string 'mytextfile.txt' to hint the browser what it is, if it is a JSFile instance it will be saved on the server)
Parameters
Sample
Writes data into an XML file. The file is saved with the encoding specified by the XML itself. (Web Enabled: file parameter can be a string 'myxmlfile.xml' to hint the browser what it is, if it is a JSFile instance it will be saved on the server)
Parameters
Sample
Writes data into an XML file. The file is saved with the encoding specified by the XML itself. (Web Enabled: file parameter can be a string 'myxmlfile.xml' to hint the browser what it is, if it is a JSFile instance it will be saved on the server)
Parameters
Sample
Writes data into an XML file. The file is saved with the encoding specified by the XML itself. (Web Enabled: file parameter can be a string 'myxmlfile.xml' to hint the browser what it is, if it is a JSFile instance it will be saved on the server)
Parameters
Sample
Writes data into an XML file. The file is saved with the encoding specified by the XML itself. (Web Enabled: file parameter can be a string 'myxmlfile.xml' to hint the browser what it is, if it is a JSFile instance it will be saved on the server)
Parameters
Sample
file a local JSFile
text the text to append to the file
Returns: true if appending worked
file a local JSFile
text the text to append to the file
encoding the encoding to use
Returns: true if appending worked
file the file path as a String
text the text to append to the file
Returns: true if appending worked
file the file path as a String
text the text to append to the file
encoding the encoding to use
Returns: true if the text is successfully appended to the file located at the specified file path using the given encoding; false otherwise.
file ;
Returns: a JSFile instance corresponding to the given file representation, or null if conversion is not possible.
path the path representing a file on the server (should start with "/")
Returns: the JSFile
source ;
destination ;
Returns: true if the file was copied successfully; false otherwise.
source ;
destination ;
Returns: true if the folder was copied successfully; false otherwise.
targetFile ;
Returns: a JSFile instance representing the specified target file.
destination ;
Returns: true if the folder was created successfully or already exists; false otherwise.
prefix ;
suffix ;
Returns: a JSFile instance representing the created temporary file.
destination ;
Returns: true if the file was successfully deleted; false otherwise.
destination ;
showWarning ;
Returns: true if the file was successfully deleted; false otherwise.
Returns: the location as canonical path
Returns: an array of JSFile instances representing the root folders of the file system.
fileOrPath can be a (remote) JSFile or a local file path
Returns: the size of the specified file in bytes, or -1 if the file is invalid.
targetFolder JSFile object.
Returns: an array of JSFile instances representing the contents of the specified folder that match the given filters.
targetFolder JSFile object.
fileFilter Filter or array of filters for files in folder.
Returns: an array of JSFile instances representing the contents of the specified folder that match the given filters.
targetFolder JSFile object.
fileFilter Filter or array of filters for files in folder.
fileOption 1=files, 2=dirs
Returns: an array of JSFile instances representing the contents of the specified folder that match the given filters.
targetFolder JSFile object.
fileFilter Filter or array of filters for files in folder.
fileOption 1=files, 2=dirs
visibleOption 1=visible, 2=nonvisible
Returns: an array of JSFile instances representing the contents of the specified folder that match the given filters.
targetFolder JSFile object.
fileFilter Filter or array of filters for files in folder.
fileOption 1=files, 2=dirs
visibleOption 1=visible, 2=nonvisible
lockedOption 1=locked, 2=nonlocked
Returns: an array of JSFile instances representing the contents of the specified folder that match the given filters.
targetFolder File path.
Returns: an array of JSFile instances representing the contents of the specified folder that match the given filters.
targetFolder File path.
fileFilter Filter or array of filters for files in folder.
Returns: an array of JSFile instances representing the contents of the specified folder that match the given filters.
targetFolder File path.
fileFilter Filter or array of filters for files in folder.
fileOption 1=files, 2=dirs
Returns: an array of JSFile instances representing the contents of the specified folder that match the given filters.
targetFolder File path.
fileFilter Filter or array of filters for files in folder.
fileOption 1=files, 2=dirs
visibleOption 1=visible, 2=nonvisible
Returns: an array of JSFile instances representing the contents of the specified folder that match the given filters.
targetFolder File path.
fileFilter Filter or array of filters for files in folder.
fileOption 1=files, 2=dirs
visibleOption 1=visible, 2=nonvisible
lockedOption 1=locked, 2=nonlocked
Returns: an array of JSFile instances representing the contents of the specified folder that match the given filters.
Returns: a JSFile instance representing the home folder of the currently logged-in user.
fileOrPath can be a (remote) JSFile or a local file path
Returns: the last modification date of the specified file, or null if the file is invalid.
targetFolder ;
Returns: the array of file names
targetFolder Folder as JSFile object.
fileFilter Filter or array of filters for files in folder.
Returns: the array of file names
targetFolder Folder as JSFile object.
fileFilter Filter or array of filters for files in folder.
fileOption 1=files, 2=dirs
Returns: the array of file names
targetFolder Folder as JSFile object.
fileFilter Filter or array of filters for files in folder.
fileOption 1=files, 2=dirs
visibleOption 1=visible, 2=nonvisible
Returns: the array of file names
targetFolder Folder as JSFile object.
fileFilter Filter or array of filters for files in folder.
fileOption 1=files, 2=dirs
visibleOption 1=visible, 2=nonvisible
lockedOption 1=locked, 2=nonlocked
Returns: the array of file names
targetFolder ;
Returns: the array of file names
targetFolder Folder path.
fileFilter Filter or array of filters for files in folder.
Returns: the array of file names
targetFolder Folder path.
fileFilter Filter or array of filters for files in folder.
fileOption 1=files, 2=dirs
Returns: the array of file names
targetFolder Folder path.
fileFilter Filter or array of filters for files in folder.
fileOption 1=files, 2=dirs
visibleOption 1=visible, 2=nonvisible
Returns: the array of file names
targetFolder Folder path.
fileFilter Filter or array of filters for files in folder.
fileOption 1=files, 2=dirs
visibleOption 1=visible, 2=nonvisible
lockedOption 1=locked, 2=nonlocked
Returns: the array of file names
source ;
destination ;
Returns: true if the file was moved successfully; false otherwise.
file the local file to open. The file should exist and be accessible.
Returns: success status of the open operation
file the local file to open. The file should exist and be accessible.
webClientTarget Target frame or named dialog/window. For example "_self" to open in the same browser window, "_blank" for another browser window. By default "_blank" is used.
webClientTargetOptions window options used when a new browser window is to be shown; see browser JS 'window.open(...)' documentation.
Returns: success status of the open operation
fileName the name of the file that should open with the given data. Can be null (but in Smart Client null - so no extension - will probably make open fail).
data the file's binary content.
mimeType can be left null, and is used for webclient only. Specify one of any valid mime types: https://developer.mozilla.org/en-US/docs/Properly_Configuring_Server_MIME_Types http://www.iana.org/assignments/media-types/media-types.xhtml http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7
Returns: success status of the open operation
fileName the name of the file that should open with the given data. Can be null (but in Smart Client null - so no extension - will probably make open fail).
data the file's binary content.
mimeType can be left null, and is used for webclient only. Specify one of any valid mime types: https://developer.mozilla.org/en-US/docs/Properly_Configuring_Server_MIME_Types http://www.iana.org/assignments/media-types/media-types.xhtml http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7
webClientTarget Target frame or named dialog/window. For example "_self" to open in the same browser window, "_blank" for another browser window. By default "_blank" is used.
webClientTargetOptions window options used when a new browser window is to be shown; see browser JS 'window.open(...)' documentation.
Returns: success status of the open operation
Returns: the content of the selected binary file as a byte array, or null if no file is selected or an error occurs.
file JSFile.
Returns: the content of the specified binary file as a byte array, or null if the file cannot be read or an error occurs.
file JSFile.
size Number of bytes to read.
Returns: a byte array containing up to the specified number of bytes from the given binary file, or null if the file cannot be read or an error occurs.
file the file path.
Returns: the content of the binary file located at the specified file path as a byte array, or null if the file cannot be read or an error occurs.
file the file path.
size Number of bytes to read.
Returns: a byte array containing up to the specified number of bytes from the binary file located at the given file path, or null if the file cannot be read or an error occurs.
Returns: the content of the selected text file as a String, or null if no file was selected.
file JSFile.
Returns: the content of the specified file path as a String, or null if the file is invalid.
file JSFile.
charsetname Charset name.
Returns: the content of the specified file as a String, or null if the file is invalid.
file the file path.
Returns: the content of the specified file path as a String, or null if the file is invalid.
file the file path.
charsetname Charset name.
Returns: the content of the specified file path as a String, or null if the file is invalid.
selectionMode 0=both,1=Files,2=Dirs
startDirectory JSFile instance of default folder,null=default/previous
multiselect true/false
filter A filter or array of filters on the folder files.
callbackfunction A function that takes the (JSFile) array of the selected files as first argument
Returns: a JSFile or an array of JSFiles selected by the user, or null if no file was selected.
selectionMode 0=both,1=Files,2=Dirs
startDirectory JSFile instance of default folder, null=default/previous
multiselect true/false
filter A filter or array of filters on the folder files.
callbackfunction A function that takes the (JSFile) array of the selected files as first argument
title The tile of the dialog
Returns: a JSFile or an array of JSFiles selected by the user, or null if no file was selected.
selectionMode 0=both,1=Files,2=Dirs
startDirectory JSFile instance of default folder,null=default/previous
multiselect true/false
callbackfunction A function that takes the (JSFile) array of the selected files as first argument
Returns: a JSFile or an array of JSFiles selected by the user, or null if no file was selected.
selectionMode 0=both,1=Files,2=Dirs
startDirectory JSFile instance of default folder,null=default/previous
callbackfunction A function that takes the (JSFile) array of the selected files as first argument
Returns: a JSFile or an array of JSFiles selected by the user, or null if no file was selected.
selectionMode 0=both,1=Files,2=Dirs
startDirectory Path to default folder,null=default/previous
multiselect true/false
filter A filter or array of filters on the folder files.
callbackfunction A function that takes the (JSFile) array of the selected files as first argument
Returns: a JSFile or an array of JSFiles selected by the user, or null if no file was selected.
selectionMode 0=both,1=Files,2=Dirs
startDirectory Path to default folder, null=default/previous
multiselect true/false
filter A filter or array of filters on the folder files.
callbackfunction A function that takes the (JSFile) array of the selected files as first argument
title The tile of the dialog
Returns: a JSFile or an array of JSFiles selected by the user, or null if no file was selected.
selectionMode 0=both,1=Files,2=Dirs
startDirectory Path to default folder,null=default/previous
multiselect true/false
callbackfunction A function that takes the (JSFile) array of the selected files as first argument
Returns: a JSFile or an array of JSFiles selected by the user, or null if no file was selected.
selectionMode 0=both,1=Files,2=Dirs
startDirectory Path to default folder,null=default/previous
callbackfunction A function that takes the (JSFile) array of the selected files as first argument
Returns: a JSFile or an array of JSFiles selected by the user, or null if no file was selected.
selectionMode 0=both,1=Files,2=Dirs
callbackfunction A function that takes the (JSFile) array of the selected files as first argument
Returns: a JSFile or an array of JSFiles selected by the user, or null if no file was selected.
callbackfunction A function that takes the (JSFile) array of the selected files as first argument
Returns: a JSFile or an array of JSFiles selected by the user, or null if no file was selected.
file A path string, JSFile or RemoteFile
file A path string, JSFile or RemoteFile
contentDisposition can be 'inline' or 'attachment'
file A path string, JSFile or RemoteFile
contentDisposition can be 'inline' or 'attachment'
browserTarget _blank or a specific name to open this in a differnt tab (really only usefull in inline mode)
file the file to track
file a local JSFile
data the data to be written
Returns: true if the binary data was successfully written to the file; false otherwise
file a local JSFile
data the data to be written
mimeType the mime type (used in Web-Client)
Returns: true if the binary data was successfully written to the file; false otherwise.
file the file path as a String
data the data to be written
Returns: true if the binary data was successfully written to the file path; false otherwise.
file the file path as a String
data the data to be written
mimeType the mime type (used in Web-Client)
Returns: true if the binary data was successfully written to the file path; false otherwise.
file JSFile
text_data Text to be written.
Returns: true if the text data was successfully written to the file; false otherwise.
file JSFile
text_data Text to be written.
charsetname Charset name.
Returns: true if the text data was successfully written to the specified file; false otherwise.
file JSFile
text_data Text to be written.
charsetname Charset name.
mimeType Content type (used only on web).
Returns: true if the text data was successfully written to the specified file; false otherwise.
file The file path.
text_data Text to be written.
Returns: true if the text data was successfully written to the specified file path; false otherwise.
file The file path.
text_data Text to be written.
charsetname Charset name.
Returns: true if the text data was successfully written to the specified file path; false otherwise.
file The file path.
text_data Text to be written.
charsetname Charset name.
mimeType Content type (used only on web).
Returns: true if the text data was successfully written to the specified file path; false otherwise.
file a local JSFile
xml_data the xml data to write
Returns: true if the XML data was successfully written to the specified file; false otherwise.
file a local JSFile
xml_data the xml data to write
encoding the specified encoding
Returns: true if the XML data was successfully written to the file; false otherwise.
file the file path as a String
xml_data the xml data to write
Returns: true if the XML data was successfully written to the specified file path; false otherwise.
file the file path as a String
xml_data the xml data to write
encoding the specified encoding
Returns: true if the XML data was successfully written to the specified file path; false otherwise.