How to rename a file name with timestamp before uploading in a request?

i have a request where i have to send a file from a folder.
It works but i want to rename the file name by adding timestamp.
Is it possible to do it with postman?
Thank you

Hey @ps198478320

You might need to expand on this details here as it’s a little difficult to know what you’re trying to do.

Would you be able to provide an example please?

Ok i have a request with POST method,
In the body of the request there is a parameter to upload a file.
So i want to know if it"s possible to rename the file before uploading in the request.

i tried this in Pre-request Script

var fso= new ActiveXobject(“Scripting.FileSystemObject”)
fos.MoveFile(“c:\temp\file.xlsx”, “c:\temp\filerenamed.xlsx”)

It returned:
ActiveXObject is not defined