PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Operating mode of the file upload performed via the Upload control
  • Limits
  • Maximum size of files to upload
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
Starts sending the selected files into an upload control. At the end of the upload, the list of the files to send is cleared on the browser (no matter whether the control sends one or more files).
Example
// -- "Whenever modifying the list of selected files" process
// in the UPL_Upload control
// Starts sending the file and transmits the content of EDT_Family control
UploadStart(MySelf, EDT_Family)
// -- "Receiving the uploaded files" process
PROCEDURE Reception(FamilyName)
// Copies the file into the directory corresponding to the family
UploadCopyFile(MySelf, CompleteDir(sDestinationDirectory) + FamilyName, "")
Syntax
UploadStart(<Upload Control>, [ <Parameter 1> [ , ... [ , <Parameter N>]]])
<Upload control>: Character string (with or without quotes)
Name of Upload control to use.
<Parameter 1>: Any type
First parameter that must be passed to the "Receiving the uploaded files" server process. To retrieve this parameter, a procedure of the following format must be declared in the "Receiving the uploaded files" process:
PROCEDURE ProcedureName(<Parameter 1> [, ... [, <Parameter N>]])
PHP If this function is used in a PHP site, you cannot specify the parameters to pass to the "Receiving the uploaded files" server process. This feature is not supported in PHP.
<Parameter N>: Any type
Nth parameter that must be passed to the "Receiving the uploaded files" server process. To retrieve this parameter, a procedure of the following format must be declared in the "Receiving the uploaded files" process:
PROCEDURE ProcedureName(<Parameter 1> [, ... [, <Parameter N>]])
PHP If this function is used in a PHP site, you cannot specify the parameters to pass to the "Receiving the uploaded files" server process. This feature is not supported in PHP.
Remarks

Operating mode of the file upload performed via the Upload control

Several processes are associated with the upload control (single-file or multi-file):
  • For a simple upload control, these processes are associated with the "Send" button.
  • For a multi-file upload control, these processes are associated with the "Add" button.
The processes used when uploading the selected files are as follows:
  • "Progress of transfer" browser process:
    During the progress of the upload, this process is called on a regular basis in order to update a possible progress bar.
  • "Receiving the uploaded files" server process:
    This process is run when all the files are received by the server.
    Note: If UploadStart is called with additional parameters, these parameters are transmitted to the "Receiving the uploaded files" process. To retrieve these parameters, a procedure must be declared in this process (via the PROCEDURE statement).

Limits

The modifications performed in the server process named "Receiving the uploaded files" are NOT carried over into the browser. These modifications will be visible during the next display of the page.

Maximum size of files to upload

By default, the size of the files to upload is not limited in the WEBDEV engine. This size can be limited:
  • by the Web server used. See the documentation about the Web server used for more details.
  • by WEBDEV application server.
The file will not be uploaded if its size exceeds the limit size.
To modify the maximum size of the files to upload in WEBDEV application server, the registry must be modified on the server:
  1. To modify the size of the uploaded files for all the WEBDEV 23 applications, select the following key: HKEY_LOCAL_MACHINE\SOFTWARE\PC SOFT\WEBDEV\23.0
  2. Add the MAX_UPLOAD string. The value of this string will be the maximum size of files to upload (in KB).
Related Examples:
Uploading or Downloading a file Unit examples (WEBDEV): Uploading or Downloading a file
[ + ] This example explains how to upload (copy to the server) or download (download from the server) a file and it allows you to:
- Copy a file from the browser computer to the server
- Download a file found on the server
- Download a file found on the server via a link
- Download a file found on the server by requesting its opening
Components
WEBDEV - Browser code WDJS.DLL
Minimum required version
  • Version 15
Comments
Click [Add] to post a comment