PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Managing Drag and Drop of files to an Upload control (HTML5)
  • Properties associated with an Upload control
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
Overview
The Upload control is used to upload one or more files.
The Upload control can be handled by programming. To do so, use the name of the Upload control ("Send" or "Add" button).
The Uploadxxx functions of WLanguage can also be used to handle an Upload control. see the list of functions for upload management for more details.
Managing Drag and Drop of files to an Upload control (HTML5)
Versions 17 and later
The browsers that support HTML5 (like Firefox and Chrome) allow you to Drag and Drop the files to the Upload control.
The "Details" tab in the description window of the Upload control ("Send" or "Add" button) is used to manage this feature.
For an Upload control used to upload several files, the control on which the Drag and Drop operation can be performed corresponds by default to the list of the Upload control.
For an upload control used to upload a single file, we advise you to create a Static control displaying for example "Drop the file to upload here", then define this Static control as the control where the file will be dropped.
You also have the ability to modify the Upload control supplied by default:
  1. Delete the initialization code of the static control ("STC_FileUpload" control).
  2. In the "Details" tab of the Upload control, define the "STC_FileUpload" static control as being the receiving control.
  3. Modify (if necessary) the default text of the static control. For example: Drop a file here or click "Send...".
  4. Reinitialize the static control at the end of upload in the "After receiving the uploaded files" process:
STC_File_Upload = "Drop a file here or click ""Send..."""
For an Upload control used to upload several files proposed by default, the control on which Drag and Drop can be performed corresponds by default to the cell of Upload control.
New in version 17
The browsers that support HTML5 (like Firefox and Chrome) allow you to Drag and Drop the files to the Upload control.
The "Details" tab in the description window of the Upload control ("Send" or "Add" button) is used to manage this feature.
For an Upload control used to upload several files, the control on which the Drag and Drop operation can be performed corresponds by default to the list of the Upload control.
For an upload control used to upload a single file, we advise you to create a Static control displaying for example "Drop the file to upload here", then define this Static control as the control where the file will be dropped.
You also have the ability to modify the Upload control supplied by default:
  1. Delete the initialization code of the static control ("STC_FileUpload" control).
  2. In the "Details" tab of the Upload control, define the "STC_FileUpload" static control as being the receiving control.
  3. Modify (if necessary) the default text of the static control. For example: Drop a file here or click "Send...".
  4. Reinitialize the static control at the end of upload in the "After receiving the uploaded files" process:
STC_File_Upload = "Drop a file here or click ""Send..."""
For an Upload control used to upload several files proposed by default, the control on which Drag and Drop can be performed corresponds by default to the cell of Upload control.
The browsers that support HTML5 (like Firefox and Chrome) allow you to Drag and Drop the files to the Upload control.
The "Details" tab in the description window of the Upload control ("Send" or "Add" button) is used to manage this feature.
For an Upload control used to upload several files, the control on which the Drag and Drop operation can be performed corresponds by default to the list of the Upload control.
For an upload control used to upload a single file, we advise you to create a Static control displaying for example "Drop the file to upload here", then define this Static control as the control where the file will be dropped.
You also have the ability to modify the Upload control supplied by default:
  1. Delete the initialization code of the static control ("STC_FileUpload" control).
  2. In the "Details" tab of the Upload control, define the "STC_FileUpload" static control as being the receiving control.
  3. Modify (if necessary) the default text of the static control. For example: Drop a file here or click "Send...".
  4. Reinitialize the static control at the end of upload in the "After receiving the uploaded files" process:
STC_File_Upload = "Drop a file here or click ""Send..."""
For an Upload control used to upload several files proposed by default, the control on which Drag and Drop can be performed corresponds by default to the cell of Upload control.
Properties associated with an Upload control
Several WLanguage properties are available for the Upload control. The main properties are as follows:
MultiselectionUsed to find out and modify the mode for selecting files in an Upload control.
Versions 15 and later
NameBrowserFile
New in version 15
NameBrowserFile
NameBrowserFile
Allows you to find out the initial name of the file to upload found on the computer of the Web user. This property is available for the multi-file Upload controls.
Versions 15 and later
NameServerFile
New in version 15
NameServerFile
NameServerFile
Allows you to find out the name of the uploaded file found on the server. This property is available for the multi-file Upload controls.
OccurrenceAllows you to find out the number of files found in an Upload control.
Versions 15 and later
TypeFiles
New in version 15
TypeFiles
TypeFiles
Allows you to find out and modify the filter on the files proposed in the file picker of the Upload control.
ValueAllows you to find out and modify the list of files found in the Upload control.

To find out the entire list of properties that can be used on the Upload control, see List of properties available for the Upload control.
Minimum required version
  • Version 15
Comments
Click [Add] to post a comment