|
|
|
|
|
- In which event should I use this function?
- Maximum size of files to upload
UploadCurrentFileSizeSent (Function) In french: UploadTailleEnvoyéeFichierEnCours
Not available
Returns the size (in bytes) already sent for the file currently uploaded via an Upload control.
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 the Upload control to be used. Remarks In which event should I use this function? UploadCurrentFileSizeSent can only be used in the browser event "Progress of transfer". This event is associated: - to the "Send" button for a single-file Upload control.
- to the "Add" button for a multi-file Upload control.
Used in another event, 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 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 the WEBDEV Application Server, the registry must be modified on the server: - To change the size of uploaded files for all WEBDEV 2025 applications, select the following key:
- 32-bit: HKEY_LOCAL_MACHINE\SOFTWARE\PC SOFT\WEBDEV\30.0
- 64-bit: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\PC SOFT\WEBDEV\30.0
- Add the MAX_UPLOAD string. The value of this string will be the maximum size of files to upload (in KB).
Related Examples:
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|