Hello dream support team. I read many topics about changing the name of an uploaded file but i could not make it work so i would use a little more help about my case.
Users need to upload files to server.
I need to change their names to format like UserID_datetime_originalfilename in order to find them quickly on server( using FTP).
i wrote some code to before record add but i cannot "take" the originalfilename using $_FILES[]["name"]( this is my main problem). I also followed an example that shows how to rename the files redirecting them to edit page, but in this sollution user has to wait for redirection and press again submit(is not User Friendly)
How can i rename and save a users file when he uploads it?
Thank you in advance