|
|
|
|
|
FileDownload (Function) In french: FileDownload
Not available
Starts file download by browser. This file will be saved in the download directory defined in the browser settings. OR 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 (on the server) to be sent to the client. <New File Name>: Optional character string Name under which the file will be offered for saving on the client workstation. If this parameter is missing or is an empty string (""), the file name on the server will be used. <MIME type>: Optional Ansi character string In most cases, this parameter doesn't need to be filled in: the MIME type is generally ignored by browsers.- 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 most 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": displays a dialog box offering to download the file to the user's computer (default).
- "application/msword": displays a Word file.
- "application/vnd.ms-excel": displays an 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|