Ken Lewis Posted February 20, 2022 Share Posted February 20, 2022 I want a function, just like 'browse' botton. When I select a file from my local machine and I get the full name. I can save this filename to database. I need not upload the file. How can I do this ? Quote Link to comment Share on other sites More sharing options...
x11 Posted February 20, 2022 Share Posted February 20, 2022 use TUniFileUpload and Files array procedure TfrdAppSettings.uploadJsMultiCompleted(Sender: TObject; Files: TUniFileInfoArray); begin for var I := Low(Files) to High(Files) do UploadMyFil(Files[I].CacheFile, Files[I].FileName); end; Quote Link to comment Share on other sites More sharing options...
Ken Lewis Posted February 20, 2022 Author Share Posted February 20, 2022 Sorry, when I use your code, a error messge showed "Error Status=0". I think, I should set a upload folder. But, I don't want to upload any file. And your code is excuted when a file has finished uploading. if the file size is very big, I have to wait for a long time. It is not necessary. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 20, 2022 Share Posted February 20, 2022 Hello, Which build and edition of UniGUI are you using? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.