hootchi Posted October 2, 2014 Posted October 2, 2014 Hi all UniGuys, i would like to get the original filename of file on TUniFileUpload, but I do not know how. There is only one event OnComplete returning TFileStream, but filename of this stream is already renamed to random hash. Where I can find original filename? Thanks H. Quote
Marlon Nardi Posted October 2, 2014 Posted October 2, 2014 Event -> FileUploadCompleted ExtractFileName(FileUpload.FileName) 1 Quote
hootchi Posted October 2, 2014 Author Posted October 2, 2014 Thanks, this property is visible only in script and I haven't seen it Quote
Administrators Farshad Mohajeri Posted October 2, 2014 Administrators Posted October 2, 2014 Script? Quote
hootchi Posted October 2, 2014 Author Posted October 2, 2014 Script? I mean, this property is not published in ObjectInspector, and so I have not seen it. Quote
Administrators Farshad Mohajeri Posted October 2, 2014 Administrators Posted October 2, 2014 It is a public variable Quote
asapltda Posted November 13, 2015 Posted November 13, 2015 Event -> FileUploadCompleted ExtractFileName(FileUpload.FileName) Event -> FileUploadCompleted ExtractFileName(FileUpload.FileName) Hello , How can I rename the file to disk , or copy it to a database? Thank you Quote
asapltda Posted November 13, 2015 Posted November 13, 2015 Hello , How can I rename the file to disk , or copy it to a database?Thank you Quote
Administrators Farshad Mohajeri Posted November 13, 2015 Administrators Posted November 13, 2015 procedure TMainForm.UniFileUpload1Completed(Sender: TObject; AStream: TFileStream); begin end; You can use AStream for any purpose. Quote
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.