Modify the name of the Uploaded file

I have been looking around the forums and through the help, but I have found no way to change the name of the uploaded file. I found a post that said it was not possible without modifying the PHP code directly, but it was for version 6.
Is there no way to change the name of the file by adding a random number or a date perhaps?
I don’t want files to be in separate folders, I want them all in the same folder with unique names.
Thanks for any help.

You can’t without using PHP code, sorry, but it’s not dificult otherwise. Should be a little snippet

I don’t mind jumping into the PHP code. Could you point me in the right direction? Thanks!

What PHP file am I looking to edit? and how best to edit PHP files in the process? Publish project and then edit or is there some other way to retain the PHP file so Its not regenerated and overwritten each time?
Is there a special process for editing PHP content directly that retains the changes?
I am new to Scriptcase so am learning.
Thanks!

I strongly don’t recommend you to edit generated PHP files.
Everytime you need to generate the application it’ll erase your code.
Instead, try to code PHP inside the events or using a blank application to code your PHP.

[QUOTE=yourguide;26872]What PHP file am I looking to edit? and how best to edit PHP files in the process? Publish project and then edit or is there some other way to retain the PHP file so Its not regenerated and overwritten each time?
Is there a special process for editing PHP content directly that retains the changes?
I am new to Scriptcase so am learning.
Thanks![/QUOTE]

In the form you are uploading the file, in the AfterUpdate process for example, you can code. Take path where files are uploaded (in forum there are ways to get this value), concatenate the field name, and you will have the full path to the file. Now, you just need to use the correct PHP code to modify this filename, and once modified, put the new file name on the filename field.

Sorry, I’m far from my computer, I will try to help you with some code tomorrow if have time.