PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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 total size (in bytes) of a file found in an Upload control.
Note: This function can be used even if there is no file is currently uploaded.
Example
// Displays the total file size in KB
STC_TotalFileSize = Round(UploadFileSize(MySelf, 1) / 1024, 0) + "KB"
Syntax
<Result> = UploadFileSize(<Upload control> [, <File Subscript>])
<Result>: Integer
Total size (in bytes) of the file found in the Upload control.
<Upload control>: Character string (with or without quotes)
Name of Upload control used.
<File Subscript>: Optional integer
Subscript of the file (found in the Upload control) to handle. This parameter is set to 1. by default
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