This topic is locked
[SOLVED]

 on upload image file php adds a random string to the image filename

4/29/2017 6:12:35 AM
PHPRunner General questions
Y
YCH author

With bootstrap layout.
On uploading an image file PHPrunner adds a random string to the image file name.
eg : 20161230_125347.jpg

will be stored in my image field as

[{"name":"\/images\/20161230_125347_4akwg8tk.jpg","usrName":"20161230_125347.jpg","size":41587,"type":"image\/jpeg","searchStr":"20161230_125347.jpg,!:sStrEnd"}]
How do I retrieve the modified image filename (in my example 20161230_125347_4akwg8tk.jpg) with the random string PHPrunner added ? I need it to add additional coding to make bootstrap behave responsive (scaling the image automatically) .

romaldus 4/29/2017

for predictable filename, you can rename physical file name of uploaded files:
https://xlinesoft.com/phprunner/docs/rename_uploaded_file.htm