Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TMS VCL Cloud Pack
TAdvGDrive: How to upload a file to a known folder without using GetDriveInfo

Call "SearchFolder" with the folder name as a parameter. If that returns true, the first item of the "Drive" collection contains the required folder. Then call "Upload" with the folder object and the filename of the file to upload as parameters.

Example:

if AdvGDrive.SearchFolder('FolderName') then
  AdvGDrive.Upload(AdvGDrive.Drive.Items[0], 'FileName.ext');