-
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
docs: Small typos in libraries/uploaded_files.rst #8889
Conversation
Small typos in libraries/uploaded_files.rst
@@ -83,9 +83,9 @@ this code and save it to your **app/Controllers** directory: | |||
|
|||
.. literalinclude:: uploaded_files/002.php | |||
|
|||
Since the value of a file upload HTML field doesn't exist, and is stored in the | |||
Since HTML file element has no value attribute, and the upload file is stored in the |
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.
The original sentence is also difficult to understand, but this also seems inaccurate.
The original says there is no data for uploaded files in $_POST
.
I don't understand what "HTML file element has no value attribute" says.
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.
I sent another PR to improve the description. See #8910
@@ -83,9 +83,9 @@ this code and save it to your **app/Controllers** directory: | |||
|
|||
.. literalinclude:: uploaded_files/002.php | |||
|
|||
Since the value of a file upload HTML field doesn't exist, and is stored in the | |||
Since HTML file element has no value attribute, and the upload file is stored in the | |||
``$_FILES`` global, only :ref:`rules-for-file-uploads` can be used to validate |
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.
"the upload file is stored in the $_FILES
global"
This is not true or misleading.
The global $_FILES contains all the uploaded file information.
Rollback misleading changes in libraries/uploaded_files.rst
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.
Thanks!
Description
Small typos in libraries/uploaded_files.rst
Checklist: