Skip to content
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

Merged
merged 2 commits into from
May 24, 2024

Conversation

obozdag
Copy link
Contributor

@obozdag obozdag commented May 11, 2024

Description
Small typos in libraries/uploaded_files.rst

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

Small typos in libraries/uploaded_files.rst
@kenjis kenjis added the documentation Pull requests for documentation only label May 12, 2024
@@ -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
Copy link
Member

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.

Copy link
Member

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
Copy link
Member

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
Copy link
Contributor

@datamweb datamweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kenjis kenjis merged commit 66dfd8c into codeigniter4:develop May 24, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Pull requests for documentation only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants