Search the Community
Showing results for tags 'tunifileuploadbutton'.
Found 2 results
I am using a TUniFileUploadButton to upload images and when the OnCompleted event is called I need to rename the file. The problem I have is that the RenameFile is failing and when I use Windows Explorer to go to the directory to try and delete the file, Windows reports that the file is in use by my application. Therefore it would seem like the file is being locked by my application once the upload has completed and only after shutting down my app can I delete or rename it. I also tested this using the fupload demo app and again the file seems to be locked. I am using build 1534.
It would be great if the TUniFileUpload and TUniFileUploadButton had an option to create the TargetFolder if it doesn't already exist. So when you try and upload a file to the TargetFolder a check would be made and if it doesn't exist then it's created automatically.