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

Fix File Upload #952

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Fix File Upload #952

wants to merge 5 commits into from

Conversation

RMartinOscar
Copy link
Contributor

@RMartinOscar RMartinOscar commented Jan 26, 2025

Before
image
After
image

image

@RMartinOscar RMartinOscar requested a review from a team as a code owner January 26, 2025 18:22
@RMartinOscar RMartinOscar added the 🐛 bug Something isn't working label Jan 26, 2025
@@ -502,6 +502,7 @@ protected function getHeaderActions(): array
->storeFiles(false)
->previewable(false)
->preserveFilenames()
->maxSize($server->node->upload_size * config('panel.use_binary_prefix') ? 1024 : 1000)
Copy link
Member

Choose a reason for hiding this comment

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

As far as I can see maxSize always expects KiB (despite the filamentphp docs calling it KB). So we need to do some math when using decimal prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants