|
|
|
|
|
- Tamaño máximo de los archivos a cargar
- Pre-launched sessions
UploadFileName (Function) Returns the name of a file "uploaded" by the Web user. This file must have been uploaded: - via a single-file or multi-file Upload field. For more details, see Upload control.
- via an "Upload" Edit control (kept for compatibility).
FOR I = 1 _TO_ UPL_Upload.Count
sFileName is string = UploadFileName(UPL_Upload, False,I)
sCopiedFileName is string = UploadCopyFile(UPL_Upload, fDataDir(), "",I)
IF fFileExist(fDataDir() + "\" + sCopiedFileName) THEN
gsUploadedFile = fDataDir() + "\" + sCopiedFileName
END
END
SourceFile, DestFile are strings
SourceFile = UploadFileName(EDT_File)
IF SourceFile <> "" THEN
DestFile = UploadFileName(EDT_File, False)
DestFile = "c:\documents\" + fExtractPath(DestFile, fFile + fExtension)
fCopyFile(SourceFile, DestFile)
END
Sintaxis
<Result> = UploadFileName(<Upload control> [, <File location> [, <File index>]])
<Result>: Character string Name of uploaded file. <Upload control>: Control name Name of control used for upload. This control can be: - a single-file or multi-file Upload control field.
- an "Upload" Edit control. This control contains the name and path of the file that will be sent to the server.
<File location>: Optional boolean Location of file whose name you want to get:- True (default): Name of the uploaded file on server.
- False: Name of the file to be uploaded (on the user's computer).
<File index>: Optional integer Index of the file whose name is to be retrieved. This parameter is only used for an upload performed with the multi-file Upload control. By default, this index is 1. Observaciones Tamaño máximo de los archivos a cargar Por Default, el tamaño de los archivos a cargar no está limitado en el motor WEBDEV. Este tamaño puede estar limitado por el WEBDEV Application Server. El archivo no se cargará si su tamaño supera el tamaño límite. Para modificar el tamaño máximo de los ficheros a subir en el WEBDEV Application Server, hay que modificar el registro en el servidor: - Para cambiar el tamaño de los archivos cargados para todas las aplicaciones WEBDEV 2025, seleccione la siguiente tecla:
- 32 bits: HKEY_LOCAL_MACHINE\SOFTWARE\PC SOFT\WEBDEV\30.0
- 64 bits: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\PC SOFT\WEBDEV\30.0
- Añadir la cadena MAX_UPLOAD. El valor de esta cadena será el tamaño máximo de los archivos a subir (en KB).
Pre-launched sessions If your project uses pre-launched sessions, this function must not be used in the project initialization event. This function must be used in the "Initialization in pre-launched session mode" event. Componente: wd300page.dll
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|