PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • In which process should this function be used?
  • 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
Returns the size (in bytes) already sent for the file currently uploaded via an Upload control.
Example
// -- "Progress of transfer" process
// Displays the total file size in KB
STC_SizeFileSent = Round(UploadCurrentFileSize(MySelf) / 1024, 0) + "KB"
Syntax
<Result> = UploadCurrentFileSizeSent(<Upload control>)
<Result>: Integer
Size already sent for the file that is currently uploaded.
<Upload control>: Control name
Name of Upload control to use.
Remarks

In which process should this function be used?

UploadCurrentFileSizeSent can only be used in the "Progress of transfer" browser process. This process is associated with:
  • the "Send" button for a single-file Upload control.
  • the "Add" button for a multi-file Upload control.
Used in another process, UploadCurrentFileSizeSent will return 0.

Maximum size of files to upload

By default, the size of 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 uploaded files for all 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