PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Maximum size of files to upload
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
UploadDelete (Function)
In french: UploadSupprime
Deletes a file from the list of files to upload: the file will not be uploaded on the server.
Remark: This function can only be used with a multi-file Upload control.
Example
// -- Browser click code of "BTN_Delete"
nFile is int = ListSelect(LIST_UploadMulti)
IF nFile <> -1 THEN
UploadDelete(UPL_UploadMulti, nFile)
// No need to update the list of files to upload
// it will be automatically done by the modification code of Upload control
END
Syntax
UploadDelete(<Upload control> , <File index>)
<Upload control>: Control name
Name of the multi-file Upload control used.
<File index>: Integer
Subscript of file that will be deleted from the list of files to upload (1 for the first file in the list, 2 for the second one, ...).
Remarks

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:
  1. To change the size of uploaded files for all WEBDEV 27 applications, select the: HKEY_LOCAL_MACHINE\SOFTWARE\PC SOFT\WEBDEV\27.0 on a 32-bit computer and HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\PC SOFT\WEBDEV\27.0 on a 64-bit computer.
  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
Component: WDJS.DLL
Minimum version required
  • Version 15
Comments
Click [Add] to post a comment