Jump to content

How to get Filename on UniFileUpload1MultiCompleted


irigsoft

Recommended Posts

Hello,

I try to get original file name on UniFileUpload2MultiCompleted (from demo  "FileUpload - Multiple" )

 

  // process files after all files are uploaded
  for I := Low(Files) to High(Files) do begin
    if Assigned(Files[I].Stream) then
      AddImage(Files[I].Stream);

end;

I try with  Files[I].Stream.FileName , but I get cashed files name.

I try with UniFileUpload2.FileName, but I get first name in the list for every files.

 

My need is, when I found problem with some of files in the Upload File List, I will get original file name and show to the user this fileName and problem with him.

is it possible on MultiCompleted ?

 

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...