Jump to content

About FileUpload


dionel1969

Recommended Posts

Hello:

 

I just start to use UniFileUpload and I want to know if would be possible to add properties:

 

1- DestinationFolder

 

2- KeepSameName

 

????

 

I saw the component upload a file to cache\appname\XXXXXXXXXXXXXXXXX.ext (where X is any character).

Link to comment
Share on other sites

  • 10 months later...

Use TFileFileUpload OnComplete event:

 

procedure TNuevoPedido.UniFileUpload1Completed(Sender: TObject;

AStream: TFileStream);

var F: TFileStream;

begin

UniListBox1.Items.Add(UniFileUpload1.FileName);

F:= TFileStream.Create('<Your file name and path',fmCreate);

F.CopyFrom(ASTream);

F.Free;

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