|
|
|
|
|
FileDownload (Function) In french: FichierTélécharge
Not available
Starts downloading a file in the browser. The file will be saved in the download directory defined in the browser settings. let sFile = fTempFile()
FileDownload(sFile, "Report" + DateSys() + ".pdf", mimeTypePDF)
fDelete(sFile)
Syntax
FileDownload(<File to download> [, <New file name> [, <MIME type>]])
<File to download>: Character string Name of the file (located on the server) to be sent to the client. <New file name>: Optional character string Name suggested when the user saves the file. If this parameter is not specified or is an empty string (""), the file name on the server will be used. <MIME type>: Optional ANSI character string Generally, you don't need to specify this parameter. Most browsers ignore the MIME type.- Name of MIME type to use. The MIME type is used to indicate to the browser the type of file that must be handled. Hundreds of types are defined in the MIME communication standard (available on the Internet). The most common values recognized by the majority of browsers are:
- "text/html": HTML page (*.htm, *.html)
- "text/plain": text file (*.txt)
- "application/pdf": PDF file (*.pdf)
- "image/gif": GIF image (*.gif)
- "image/jpeg": JPEG image (*.jpg, *.jpeg)
- "video/mpeg": MPEG video (*.mpg, *.mpeg)
- "application/unknown": Opens a file download dialog box (default).
- "application/msword": Opens a Microsoft Word file.
- "application/vnd.ms-excel": Opens a Microsoft Excel file.
- MIME type corresponding to one of the following constants:
| | mimeTypeXMLApplication | XML content. | mimeTypeBinary | Binary content (byte stream). | mimeTypeDOC | Word file (*.doc) | mimeTypeDOCX | Word file (*.docx) | mimeTypeGIF | GIF image (*.gif) | mimeTypeHTML | HTML page (*.htm, *.html) | mimeTypeJPEG | JPEG image (*.jpg, *.jpeg) | mimeTypeJSON | JSON content. | mimeTypePDF | PDF document (*.pdf) | mimeTypePNG | JPEG image (*.png) | mimeTypeSOAP | SOAP content in XML format. | mimeTypeText | Text (*.txt) | mimeTypeXMLText | XML text | mimeTypeXLS | Excel file (*.xls) | mimeTypeXLSX | Excel file (*.xlsx) | mimeTypeZIP | ZIP file (*.zip) |
Business / UI classification: UI Code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|