I'm clearly understand how works TIWFileUploader.
delphi code
IWFileUploader1AsyncUploadCompleted(Sender: TObject; var DestPath, FileName: string; var SaveFile, Overwrite: Boolean)I can implement custom file processing when SaveFile = False.
IW will create cache file with unique name, when upload is complete IW will move temp cache file to DestPath and rename it to FileName.
What with TIWCGJQFileUpload?
If jqfileuploadoptions.UploadPath is empty then TIWCGJQFileUpload saves file to cache dir with original file name (corresponding error ticket).
I can rename file or move it manually onUploadComplete, but what if user uploads 2 or more files with same name at same time.
How to override temp file name in user cache dir?
delphi code
procedure TFrameFileUpload.IWCGJQFileUpload1JQFileUploadOptionsSubmit(Sender: TObject; AParams: TStringList);
begin
// IWCGJQFileUpload1.FileNames.Count = 0
end;
delphi code
procedure TFrameFileUpload.IWCGJQFileUpload1JQFileUploadOptionsUpload(Sender: TObject; AParams: TStringList);
begin
// IWCGJQFileUpload1.FileNames.Count = 1; File already created with original file name in user cache dir.
end;