|
|
|
|
- In which event should I use UploadCurrentFile?
- Maximum size of files to upload
UploadCurrentFile (Function) In french: UploadFichierEnCours Indicates the file currently uploaded via the Upload control. This function is useful for multi-file Upload controls. // Displays the name of file currently uploaded STC_UploadMulti_File = UPL_UploadMulti[UploadCurrentFile(MySelf)] Syntax
<Result> = UploadCurrentFile(<Upload control>)
<Result>: Integer Index of file currently uploaded via the Upload control: 1 for the first file of the list, 2 for the second one, ... <Upload control>: Character string Name of the Upload control to be used. Remarks In which event should I use UploadCurrentFile? UploadCurrentFile 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, UploadCurrentFile 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 files to upload in WEBDEV Application Server, the registry must be modified on the server: - To modify the size of the uploaded files for all the WEBDEV 28 applications, select the following key: HKEY_LOCAL_MACHINE\SOFTWARE\PC SOFT\WEBDEV\28.0 on a 32-bit computer and HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\PC SOFT\WEBDEV\28.0 on a 64-bit computer.
- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|