Jump to content

UniFileUploadButton1 - When inserting one file at a time, the previous one is replaced or deleted.


fabiotj

Recommended Posts

Hey folks.

First thanks for the good work with UniGui!

Using the UniFileUploadButton1MultiCompleted event, following the example of the Demo, the following occurs:

Relevant properties:
UniFileUploadButton1--> EraseChacheAfterComplete = False
UniFileUploadButton1--> Overwrite = False
UniFileUploadButton1-->TargetFolter = MyFolder


1) Inserting multiple files - OK
2) Inserting files 1 by 1 - Deletes the previous file;

I researched the forum on the subject and it seems that others had the same problem but I was not successful applying the solutions indicated. For now I solved the problem by doing the following:
A) UniFileUploadButton1-->TargetFolter = UniServerModule.TempFolderPath
B) Using CopyFile function to copy to MyFolder,
C) Leaving UniFileUploadButton1--> EraseChacheAfterComplete = True;

The image attaches the code for the UniFileUploadButton1MultiCompleted event, noting that multiple files work normally.

I thank you for your attention,

image.png.da71083b32ba109ddc857a331d4b9470.png

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