...
plugins.file.writeFile(fileOnServer,uploadedFile.getBytes());
HTML Table |
---|
id | class | servoy sReturnTypes |
---|
|
Table Row (tr) |
---|
| Table Head (th) |
---|
Return Types |
|
|
HTML Table |
id |
---|
|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Server Property Summary |
|
|
HTML Table |
id |
---|
|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Summary |
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#appendToTXTFile(file/fileName, text, [encoding]) Appends data into a text file. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#convertToJSFile(file) Returns a JSFile instance corresponding to an alternative representation of a file (for example a string). |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#convertToRemoteJSFile(serverPath) Returns the JSFile object of a server file, given its path (relative the default server location). |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#copyFile(sourceFile, destinationFile) Copies the source file to the destination file. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#copyFolder(sourceFolder, destinationFolder) Copies the sourcefolder to the destination folder, recursively. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#createFile(targetFile) Creates a JSFile instance. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#createFolder(targetFolder) Creates a folder on disk. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#createTempFile(filePrefix, fileSuffix) Creates a temporary file on disk. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#deleteFile(targetFile) Removes a file from disk. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#deleteFolder(targetFolder, showWarning) Deletes a folder from disk recursively. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#getDesktopFolder() Returns a JSFile instance that corresponds to the Desktop folder of the currently logged in user. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#getDiskList() Returns an Array of JSFile instances correponding to the file system root folders. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#getFileSize(targetFile) Returns the size of the specified file. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#getFolderContents(targetFolder, [fileFilter], [fileOption(1=files,2=dirs)], [visibleOption(1=visible,2=nonvisible)], [lockedOption(1=locked,2=nonlocked)]) Returns an array of JSFile instances corresponding to content of the specified folder. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#getHomeFolder() Returns a JSFile instance corresponding to the home folder of the logged in used. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#getRemoteFolderContents(targetFolder, [fileFilter], [fileOption(1=files,2=dirs)], [visibleOption(1=visible,2=nonvisible)], [lockedOption(1=locked,2=nonlocked)]) Returns an array of JSFile instances corresponding to content of the specified folder on the server side. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#moveFile(sourceFile, destinationFile) Moves the file from the source to the destination place. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#readFile([file], [size]) Reads all or part of the content from a binary file. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#readTXTFile([file], [charsetname]) Read all content from a text file. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#showFileOpenDialog([selectionMode(0=both,1=Files,2=Dirs)], [startDirectory(null=default/previous)], [multiselect(true/false)], [filterarray], [callbackmethod], [dialog title text]) Shows a file open dialog. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#showFileSaveDialog([fileName/dir suggestion], [dialog title text]) Shows a file save dialog. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#streamFilesFromServer(file/fileName|fileArray/fileNameArray, serverFile/serverFileName|serverFileArray/serverFileNameArray, [callbackFunction]) Streams a file or an array of files from the server in a background task to a file (or files) on the client. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#streamFilesToServer(file/fileName|fileArray/fileNameArray, [serverFile/serverFileName|serverFileArray/serverFileNameArray], [callbackFunction]) Streams a file or an array of files to the server in a background task - with optional relative path(s)/(new) name(s). |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#writeFile(file, binary_data, [mimeType]) Writes data into a binary file. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#writeTXTFile(file, text_data, [charsetname], [mimeType]) Writes data into a text file. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#writeXMLFile(file, xml_data) Writes data into an XML file. |
|
|
|
...