Rename uploaded file with SESSION_ID and FILENAME?
I have set up a page that allow the user to upload a file (works fine).
is there a way to rename a file even if it doesn't exist?
I would like to upload a file named: recordID + OriginalFilename.
Then I need to attach this uploaded file to an Universal Email behaviour.
The problem, here is that Linux allow uploading file1,jpg and File.jpg as two separate files. But I need to download all files in windows so I get prompts for replacing existing files.
To be sure all files are unique I could just add the recordID to fhe file name. Is this correct?
Is there a way to do this?