PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • Support for .TypeFiles depending on the browser
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The Property TypeFiles allows to know and modify the filter on the files proposed in the file selector of the Upload control.
Example
UPL_Upload1.TypeHEX@ s = "HEX@ Text (*.txt)" + TAB + "*.txt" + RC + "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 (with quotes)
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 depending on the browser

Some browsers keep their default filter. The HEX@ of the extensions defined with the Property TypeFiles is added to the HEX@ of the 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