Jump to content

UniFileUpload files uploaded( solved ! )


mikromundo

Recommended Posts

@mikromundo

Hello,

I have modified your code:

\FMSoft\Framework\uniGUI\Demos\Desktop\FileUpload
procedure TMainForm.UniFileUploadCompleted(Sender: TObject; AStream: TFileStream);
var
  //cFile  : string;
  DestName : string;
  DestFolder : string;
begin
  //edSearch30.Text := AStream.FileName;
  //cFile           := ExtractFileName( AStream.FileName );

  DestFolder := (Sender as TUniFileUpload).TargetFolder;
  DestName := DestFolder + ExtractFileName((Sender as TUniFileUpload).FileName);
  edSearch30.Text := 'File Name: ' + AStream.FileName;
  CopyFile(PChar(AStream.FileName), PChar(DestName), False);
end;

 

Link to comment
Share on other sites

@Sherzod

Sorry to bother you again, but did you test the project I sent you in the last post?

I can't get the expected result.

It is worth remembering that this problem occurred with several users (not just me) and I am trying to find out if the problem is mine or a bug in unigui.

I haven't migrated my unigui version yet (I'm still using the final version .1559 ).

Link to comment
Share on other sites

5 hours ago, Sherzod said:

@mikromundo

We will check this issue once again. 

@Sherzod

Sorry to bother you again, but did you test the project I sent you in the last post?

I can't get the expected result.

It is worth remembering that this problem occurred with several users (not just me) and I am trying to find out if the problem is mine or a bug in unigui.

I haven't migrated my unigui version yet (I'm still using the final version .1559 ).

Link to comment
Share on other sites

  • mikromundo changed the title to UniFileUpload files uploaded( solved ! )
  • 1 year later...

@Sherzod

I noticed that when you add a file that already exists in the destination folder, the new file receives a numerical sequence.

Ex:
Existing file: File.pdf

New upload of the same file:
File1.pdf

If I check the "overwrite" property, an exception is generated warning that the file is being used by another process.

Is it possible to check this Sherzod?

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