ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Upload functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns the total size (in bytes) of a file found in an Upload control.
Remark: 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 index>])
<Result>: Integer
Total size (in bytes) of the file found in the Upload control.
<Upload control>: Control name
Name of Upload control used.
<File index>: Optional integer
Index of the file (found in the Upload control) to manage. 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
Component: WDJS.DLL
Minimum version required
  • Version 15
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help