-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add access to full_path
index of uploaded files
#7541
Conversation
Adds access to the file's `full_path` index
Ok, let's try again. I fixed all the linting errors, updated the style of my new code, and enabled commit signing, so it should pass the workflow checks. |
Hmm, ok. I guess there are still errors. I'll figure those out. |
We still support PHP 7.4. So code must work on PHP 7.4. |
Add a short description in the changelog to let devs know this enhancement. |
It is because of PHPStan update. |
Ok, great. Is there anything else you need me to do on my end before merging? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you.
Description
Supersedes #7538
Added
UploadedFile::getClientPath()
method.This returns the
full_path
index of uploaded files (when uploaded via directory).This feature is only available in PHP 8.1+. If the method is called below that version then
null
is returned.Checklist: