Jump to content

Recommended Posts

Posted

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

Posted

Yes, files are uploaded to the temp folder first. Later you can copy it to another folder. Original file name is preserved and sent to the server.

Please see file upload demo.

 

Ok, I will check the DEMO then. Thank you.

  • 10 months later...
Posted

Yes, files are uploaded to the temp folder first. Later you can copy it to another folder. Original file name is preserved and sent to the server.

Please see file upload demo.

 

 

I'd like to know where is the Upload file Demo

Thanks

Posted

Yes, files are uploaded to the temp folder first. Later you can copy it to another folder. Original file name is preserved and sent to the server.

Please see file upload demo.

 

 

Could you show me how to save the file uploaded in another folder

thanks

Posted

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;

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