Skip to content

Fix file upload - #458

Open
Abdulmajeed-Jamaan wants to merge 2 commits into
4.xfrom
fix-file-upload
Open

Fix file upload#458
Abdulmajeed-Jamaan wants to merge 2 commits into
4.xfrom
fix-file-upload

Conversation

@Abdulmajeed-Jamaan

Copy link
Copy Markdown
Contributor

No description provided.

@what-the-diff

what-the-diff Bot commented Aug 14, 2026

Copy link
Copy Markdown

PR Summary

  • Updated .gitignore file
    Consideration for new AI assistant files and agent documents.
  • Enhanced zeus-bolt.php configuration
    New settings for acceptable file types and maximum upload size.
  • Added Localized Strings
    Inclusion of Arabic and English descriptions for accepted file types and file size limitations.
  • Modified FileUpload class
    Support for custom accepted file types and custom size limits for uploads.
  • Introduced FileUploadSecurityTest.php
    Test for validating file upload safety; restricts dangerous file types and enforces size restrictions.
  • Updated CategoryResource
    Integration of an image upload feature.

$extensions = config('zeus-bolt.uploadAcceptedFileTypes');

if (! is_array($extensions)) {
return [];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

better to return null? that is the default value for acceptedFileTypes in filament Fileupload component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants