ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Support for .TypeFiles according to the browser
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The TypeFiles property is used to get and change the filter available in the file picker of the Upload control.
Example
UPL_Upload1.TypeFiles = "Text file (*.txt)" + TAB + "*.txt" + CR + "All" + TAB + "*.*"
Syntax

Finding out the filter of files proposed by the Upload control Hide the details

<Result> = <Upload control>.TypeFiles
<Result>: Character string
Description of types of files that can be selected. This description has the following format:
<Types Files>+TAB+<List Extensions>[+CR+ ...
<Types Files 2>+TAB+<List Extensions 2>]
Where:
<Types Files>: character string describing the type of file ("BMP (*.BMP;*.RLE)" for example).
<List Extensions>: extensions corresponding to the described type ("*.BMP;*.RLE" for example).

For example:
"BMP (*.BMP;*.RLE)" + TAB + "*.BMP;*.RLE" + CR + "Icon (*.ICO)" + TAB + "*.ICO" + CR + "Other" + TAB + "*.GIF;*.TIF;*.JPG"
Remark: All types of files will be proposed if this parameter corresponds to an empty string ("").
<Upload control>: Control name
Name of Upload control used.

Modifying the filter of files proposed by the Upload control Hide the details

<Upload control>.TypeFiles = <New Filter>
<Upload control>: Control name
Name of Upload control used
<New Filter>: Character string
Description of types of files that can be selected. This description has the following format:
<Types Files>+TAB+<List Extensions>[+CR+ ...
<Types Files 2>+TAB+<List Extensions 2>]
Where:
<Types Files>: character string describing the type of file ("BMP (*.BMP;*.RLE)" for example).
<List Extensions>: extensions corresponding to the described type ("*.BMP;*.RLE" for example).

For example:
"BMP (*.BMP;*.RLE)" + TAB + "*.BMP;*.RLE" + CR + "Icon (*.ICO)" + TAB + "*.ICO" + CR + "Other" + TAB + "*.GIF;*.TIF;*.JPG"
Remark: All types of files will be proposed if this parameter corresponds to an empty string ("").
Remarks

Support for .TypeFiles according to the browser

Some browsers keep their default filter. The list of extensions defined by the TypeFiles property is added to the list of extensions defined by the browser. This operating mode occurs with the Edge browser.
Minimum version required
  • Version 15
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help