PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..TypeFiles is used to find out and modify the filter on the files proposed in the file picker of 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"
Note: All types of files will be proposed if this parameter corresponds to an empty string ("").
<Upload Control>: Character string (with or without quotes)
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>: Character string (with or without quotes)
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"
Note: 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 ..TypeFiles is added to the list of extensions defined by the browser. This operating mode occurs with the Edge browser.
Minimum required version
  • Version 15
Comments
Click [Add] to post a comment