PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
fCopyFileWebFolder (Function)
In French: fCopieFichierRépertoireWeb
Copies an image file from the data directory of application (or from one of its sub-directories) to the "_WEB" directory of application (or to one of its sub-directories).
Caution: To use this function, "Allow fCopyFileWebFolder and fDeleteFichierWebFolder" must be checked in the WEBDEV administrator (option found in the "Advanced" tab of the WEBDEV administrator).
Example
fCopyFileWebFolder("TemporaryImage.png", "images/product.png")
Syntax
<Result> = fCopyFileWebFolder(<Source File> , <Destination File>)
<Result>: Boolean
  • True if the file was copied,
  • False otherwise.
<Source File>: Character string (with quotes)
File to copy. This parameter can correspond to:
  • A name of file with its full path.
  • A name of file with its path relative to the data directory of the application. The data directory of the application is returned by fDataDir.
<Destination File>: Character string (with quotes)
Destination file of the copy. This parameter can correspond to:
  • A name of file with its full path.
  • A name of file with its path relative to the "_WEB" directory of the application. The "_WEB" directory of the application is returned by fWebDir.
Remarks
  • fCopyFileWebFolder copies a single file at a time.
  • The wildcard characters (*,?) are not allowed in the file name.
  • Only the image file can be copied (the accepted extensions are jpg, jpeg, png, gif, bmp, tif, tiff and svg).
  • If the destination directory is a sub-directory of the "_WEB" directory, this sub-directory is created if it does not exist.
  • Caution: The copy is taken into account by the WEBDEV administrator on the server (WD230ADMIN.EXE). The Windows account that runs it must have sufficient rights on the target location of copy.
Components
WEBDEV - Server code wd230page.dll
Linux wd230page.so
Minimum required version
  • Version 17
Comments
Click [Add] to post a comment