This topic is locked

Asprunner 7.2 - Upload Method

11/29/2012 6:06:23 AM
ASPRunnerPro General questions
T
TechArt author

Hello,
I start test Asprunner 7.2 , and I found the new upload method very nice and helpful.

But I face other problem when I try to read uploaded file name because the MS-SQL table field that store file name contains long string with several details as follows :
------------------------------------------------------------------------------------------------
[{"name":"files\\test_vskyslv2.html","usrName":"test.html", "size":7557,"type":"text\/html","searchStr":"test.html,!:sStrEnd"}]
------------------------------------------------------------------------------------------------
So, how I can get the file name only from the above statement.
Please advise.
Thanks

admin 11/30/2012

File info is stored in JSON format and 'usrName' field contains your file name.
Check code example #1 at http://xlinesoft.com/asprunnerpro/docs/rename_uploaded_files.htm that explains how to retrieve the file name.