Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IWFileUploader using
#8
Hi, IWFileUpload has propertie: ButtonVisible, it is True?. When you click in his button, they show you to select file, when you selected the file, iwfileupload upload your file automatic. After upload, iwfileupload fire AsyncUploadCompleted. You can create your folder, save your file, etc there.
Code:
procedure TIWForm.IWFileUploader1AsyncUploadCompleted(Sender: TObject;
  var DestPath, FileName: string; var SaveFile, Overwrite: Boolean);
var
  CurDir: string;
begin
  // get the app path
  CurDir := TIWAppInfo.GetAppPath;

  // save in the same application directory, with the same name of the original file. Overwrite if it already exists.
  IWFileUploader.SaveToFile(FileName, CurDir + FileName, True);

  // Inform IWFileUploader that we are taking care of file saving ourselves
  SaveFile := False;
end;
Reply


Messages In This Thread
IWFileUploader using - by MrSpock - 12-16-2019, 06:50 AM
RE: IWFileUploader using - by kudzu - 12-16-2019, 02:49 PM
RE: IWFileUploader using - by MrSpock - 12-16-2019, 09:25 PM
RE: IWFileUploader using - by kudzu - 12-16-2019, 10:29 PM
RE: IWFileUploader using - by kudzu - 12-16-2019, 10:32 PM
RE: IWFileUploader using - by MrSpock - 12-17-2019, 01:59 AM
RE: IWFileUploader using - by Alexandre Machado - 12-17-2019, 09:47 PM
RE: IWFileUploader using - by kudzu - 12-17-2019, 01:53 PM
RE: IWFileUploader using - by Jose Nilton Pace - 12-17-2019, 03:00 PM
RE: IWFileUploader using - by MrSpock - 12-21-2019, 08:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)