This topic is locked

PHPRunner 6.2 timestamp on file name

12/12/2012 12:05:03 PM
PHPRunner General questions
R
rlee6087 author

I'm trying to add the timestamp to a file that is uploaded via edit as in the File/Image. In Phprunner 5.3 you could check a box to add timestamp to a filename that was uploaded to avoid overwriting an existing file. I do not see that option in Phprunner 6.2? Please help, thank you in advance.

Sergey Kornilov admin 12/12/2012

In version 6.2 PHPRunner adds a random text to each uploaded file name automatically. If you want to override built-in PHPRunner file naming mechanism implement BeforeAdd event. Here are some code samples that show how to rename uploaded files: http://xlinesoft.com/phprunner/docs/rename_uploaded_file.htm