Javascript: TXTextControl.setFileDirectory Method
Description
Obsolete. This method will be removed in one of the next versions. For security reasons, the setFileDirectory method has been removed. Please set the file directory on the server side using the TXTextControl.Web.MVC.TextControl.SetFileDirectory or WebSocketHandler.SetFileDirectory method. Sets the directory path where the files of a specific file type are stored on the web server.
Syntax
<void> TXTextControl.setFileDirectory(<FileType> fileType, <string> directory)Parameters
| Parameter | Description |
|---|---|
| fileType | Must be one of the FileType values. |
| directory | The directory path where the files of the given file type are to be stored on the web server. |
Examples
The following example demonstrates TXTextControl.setFileDirectory in a practical document-editing workflow. Obsolete. This method will be removed in one of the next versions. For security reasons, the setFileDirectory method has been removed. Please set the file directory on the server side using the TXTextControl.Web.MVC.TextControl.SetFileDirectory or WebSocketHandler.SetFileDirectory method. Sets the directory path where the files of a specific file type are stored on the web server.
TXTextControl.setFileDirectory(TXTextControl.FileType.Document, "Quarterly report");