Hi,
I have a bit of PHP which uploads a file to Dropbox. I want to be able to add the User ID to the filename with a _ between userID and filename.
Currently the filename which is saved is using the code below:
$upload_name = $_FILES ["fileInputName"]["name"];
I am pulling the user ID from the modUser using
$userId = $user->get('id');
How can I add the "$userId" to the $upload_name so that, for example... $upload_name becomes "23_example.jpg" (with 23 being the user id and example.jpg being the filename).
Thanks
dubbs.
[ed. note: dubbs last edited this post 8 years, 6 months ago.]