Jump to content

UniFileUploadButton


VohminV

Recommended Posts

procedure TMenu.inbtCompleted(Sender: TObject; AStream: TFileStream);
var
DestName : string;
DestFolder : string;
i:integer;
begin
for I := 0 to inbt.MaxFiles-1 do begin
DestFolder:=UniServerModule.StartPath+'UploadFolder\'; // It's important to keep in touch with exe Next, create a new one UploadFolder Folder
DestName:=DestFolder+ExtractFileName(inbt.FileName);
CopyFile(PChar(AStream.FileName), PChar(DestName), False);
end;
ShowMessage('File: '+inbt.FileName+' Uploaded to folder: '+DestFolder);

end;

Сохраняется только один файл

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