Skip to content

Fix improper handling of optional file uploads#595

Merged
Blacksmoke16 merged 3 commits intomasterfrom
optional-files
Oct 4, 2025
Merged

Fix improper handling of optional file uploads#595
Blacksmoke16 merged 3 commits intomasterfrom
optional-files

Conversation

@Blacksmoke16
Copy link
Copy Markdown
Member

@Blacksmoke16 Blacksmoke16 commented Oct 4, 2025

Context

Previously I was treating nil and "" as the same to represent non-file upload parts. However in practice non-file parts are nil and optional file parts are "" when no file is selected. This PR allows properly having optional ATH::UploadedFile? controller parameters when using the MapUploadedFile annotation.

Changelog

  • Fix improper handling of optional file uploads

Before merging, remember to add the athena-framework/athena prefix to the PR number in the PR title

@Blacksmoke16 Blacksmoke16 added kind:bug An existing feature isn't working as expected component:framework labels Oct 4, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Components Coverage Δ
clock 100.00% <ø> (ø)
console 97.24% <ø> (ø)
dependency_injection 93.16% <ø> (ø)
dotenv 98.38% <ø> (ø)
event_dispatcher 95.90% <ø> (ø)
framework 98.12% <100.00%> (+<0.01%) ⬆️
image_size 96.63% <ø> (ø)
mercure 94.94% <ø> (ø)
mime 99.37% <ø> (ø)
negotiation 97.93% <ø> (ø)
routing 98.38% <ø> (ø)
serializer 95.83% <ø> (ø)
spec 93.80% <ø> (ø)
validator 95.90% <ø> (ø)

📢 Thoughts on this report? Let us know!

@Blacksmoke16 Blacksmoke16 merged commit 893585b into master Oct 4, 2025
14 checks passed
@Blacksmoke16 Blacksmoke16 deleted the optional-files branch October 4, 2025 16:35
PallasAthenaie pushed a commit to athena-framework/framework that referenced this pull request Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:framework kind:bug An existing feature isn't working as expected kind:release

Development

Successfully merging this pull request may close these issues.

1 participant