Skip to content

build(deps-dev): update koriym/file-upload requirement from ^0.2.0 to ^1.0.1 - #15

Merged
koriym merged 5 commits into
1.xfrom
dependabot/composer/koriym/file-upload-tw-1.0.1
Nov 30, 2026
Merged

koriym merged 5 commits into
1.xfrom
dependabot/composer/koriym/file-upload-tw-1.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on koriym/file-upload to permit the latest version.

Release notes

Sourced from koriym/file-upload's releases.

1.0.1

Security release.

Fixes GHSA-9343-66h6-6cjr: allowedTypes was validated only against the client-supplied MIME type.

When allowedTypes is set, FileUpload::create() now also detects the MIME type from the uploaded content with mime_content_type() and requires it to be in the list. Uploads whose type cannot be detected are rejected. The check of the client-supplied type is kept.

The fix was contributed by @​iefken, who also reported the issue.

Behavior change: allowlist entries that libmagic never reports (e.g. image/jpg, or text/csv, which may be detected as text/plain) now reject those files. Add the detected type to allowedTypes if needed.

Content detection does not replace extension validation. Use allowedExtensions or generate the stored filename on the server.

Commits
  • 8adf586 Merge pull request #5 from koriym/fix-phpmd-npath
  • c095104 Extract type validation from create() to satisfy PHPMD NPath limit
  • efc4009 Merge commit from fork
  • bbb74b3 Check detected MIME type for allowedTypes
  • ef67ad9 Fix CI: Add --ignore-platform-reqs for PHP 8.5 support
  • 0e6806d Fix CI workflow: remove unsupported 'lowest' parameter
  • a26c70f Merge pull request #3 from koriym/php82
  • c5bf5ca Fix Markdown heading structure in README
  • 9c6cd45 Split example classes into separate files for PSR-1 compliance
  • 6ea5a60 Move example test to tests/Example and clean up
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [koriym/file-upload](https://github.com/koriym/Koriym.FileUpload) to permit the latest version.
- [Release notes](https://github.com/koriym/Koriym.FileUpload/releases)
- [Commits](koriym/Koriym.FileUpload@0.2.0...1.0.1)

---
updated-dependencies:
- dependency-name: koriym/file-upload
  dependency-version: 1.0.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Nov 16, 2026
@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0654dbe9-a70b-4b1f-a86e-2a38786367d4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

- koriym/file-upload 1.0.1 requires PHP ^8.2; allow ^0.2.0 on 8.1
- 1.0.1 detects MIME from content, so tests use temp files with real bytes
koriym/file-upload 1.0.1 detects MIME type from file content.
@koriym
koriym merged commit c30e7e6 into 1.x Nov 30, 2026
21 checks passed
@koriym
koriym deleted the dependabot/composer/koriym/file-upload-tw-1.0.1 branch November 30, 2026 11:09
@koriym koriym mentioned this pull request Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant