Jump to content

How can I get a filename before upload?


Ken Lewis

Recommended Posts

use TUniFileUpload and Files array

procedure TfrdAppSettings.uploadJsMultiCompleted(Sender: TObject; Files: TUniFileInfoArray);
begin
  
  for var I := Low(Files) to High(Files) do
    UploadMyFil(Files[I].CacheFile, Files[I].FileName);
end;

 

Link to comment
Share on other sites

Sorry, when I use your code, a error messge showed "Error Status=0". I think, I should set a upload folder.

But, I don't want to upload any file.

And your code is excuted when a file has finished uploading. if the file size is very big, I have to wait for a long time. It  is not necessary.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...