Rename File before move_uploaded_file() PHP? |
Rename File before move_uploaded_file() PHP? |
masonh928 |
Sep 29 2015, 03:53 PM
Post
#1
|
Serious Coder Group: Members Posts: 253 Joined: 17-August 13 From: Indiana Member No.: 19,570 |
I want to assign the person's file to their ID like this for example.
User Uploads file named: Ninja.png PHP renames file by grabbing User ID: 23.png PHP moves uploaded file to permanent Resting place: /Community/Avatar/ Directory Obviously I don't need to save the user's previous avatars, so I'll just override them if they want to update their avatar/profile img. |
Lo-Fi Version | Time is now: 24th April 2024 - 08:38 PM |