Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

plugins.file.writeFile(fileOnServer,uploadedFile.getBytes());

HTML Table
idclassservoy sReturnTypes
Table Row (tr)
styleheight: 30px;
Table Head (th)
Return Types
Table Row (tr)
Table Cell (td)
Span
classsWordList
JSFile
Span
classsWordList
JSProgressMonitor

id
HTML Table
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Server Property Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)

Table Cell (td)
#servoy.FileServerService.defaultFolder

id
HTML Table
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#appendToTXTFile(file/fileName, text, [encoding])
Appends data into a text file.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSFile
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)
JSFile
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)
Boolean
Table Cell (td)
#copyFile(sourceFile, destinationFile)
Copies the source file to the destination file.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#copyFolder(sourceFolder, destinationFolder)
Copies the sourcefolder to the destination folder, recursively.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSFile
Table Cell (td)
#createFile(targetFile)
Creates a JSFile instance.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#createFolder(targetFolder)
Creates a folder on disk.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSFile
Table Cell (td)
#createTempFile(filePrefix, fileSuffix)
Creates a temporary file on disk.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#deleteFile(targetFile)
Removes a file from disk.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#deleteFolder(targetFolder, showWarning)
Deletes a folder from disk recursively.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#getDefaultUploadLocation()
Returns the default upload location path of the server
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSFile
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)
JSFile[]
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)
Number
Table Cell (td)
#getFileSize(targetFile)
Returns the size of the specified file.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSFile[]
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)
JSFile
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)
Date
Table Cell (td)
#getModificationDate(targetFile)
Returns the modification date of a file.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSFile[]
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)
Boolean
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)
byte[]
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)
String
Table Cell (td)
#readTXTFile([file], [charsetname])
Read all content from a text file.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSFile
Table Cell (td)
#showDirectorySelectDialog([directory suggestion], [dialog title text])
Shows a directory selector dialog.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Object
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)
JSFile
Table Cell (td)
#showFileSaveDialog([fileName/dir suggestion], [dialog title text])
Shows a file save dialog.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSProgressMonitor
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)
JSProgressMonitor
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)
Boolean
Table Cell (td)
#writeFile(file, binary_data, [mimeType])
Writes data into a binary file.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#writeTXTFile(file, text_data, [charsetname], [mimeType])
Writes data into a text file.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#writeXMLFile(file, xml_data)
Writes data into an XML file.

...