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

Fixed and added additional config for File Fieldtype #1894

Merged
merged 6 commits into from
Aug 15, 2024

Conversation

maurice-ellis
Copy link
Contributor

This pull request fixes the File Attribute and its issue of receiving a Livewire\Exceptions\CorruptComponentPayloadException and not uploading the file. Additionally, this fieldtype can handle multiple files and configuration options were added: File Types, Multiple Files, Min Files, and Max Files.

Of importance is the change in the handling of the dehydrated state for the File Attribute in AttributeData that happens after the file upload.

Before dehydrating, files are uploaded by BaseFileUpload and a string or array is returned, which was not properly handled previouslly.

Copy link

vercel bot commented Aug 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2024 7:13am

Copy link
Collaborator

@alecritson alecritson left a comment

Choose a reason for hiding this comment

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

Thanks @maurice-ellis I had a little play and it seemed to work well 🙇

@alecritson alecritson merged commit 64bcc07 into lunarphp:1.x Aug 15, 2024
22 checks passed
@maurice-ellis
Copy link
Contributor Author

@alecritson Great, glad I can help!

@maurice-ellis maurice-ellis deleted the Fix-File-Fieldtype branch August 15, 2024 16:58
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