marc_meat's avatar

marc_meat wrote a comment+100 XP

2mos ago

@thesnakebite great workaround!

marc_meat's avatar

marc_meat liked a comment+100 XP

2mos ago

Thanks @marc_meat! 🙌🏻 After investigating, I confirmed that this is indeed the error. I found a possible workaround without modifying the Composer fork: dynamically setting the enctype with Alpine.js only when the user selects an image:

x-bind:enctype="hasImage ? 'multipart/form-data' : false"

This way, the form is submitted without multipart/form-data by default, and the browser test passes, but when the user selects an image, it changes automatically. I hope this helps!

marc_meat's avatar

marc_meat wrote a comment+100 XP

2mos ago

@thesnakebite it's an open issue (related to multipart/form-data) with Pest: https://github.com/pestphp/pest/issues/1495

I've been testing the form manually.

marc_meat's avatar

marc_meat liked a comment+100 XP

2mos ago

Color theme for those looking to copy:

    --color-background: oklch(0.12 0 0);
    --color-foreground: oklch(0.95 0 0);
    --color-card: oklch(0.16 0 0);
    --color-primary: oklch(0.65 0.15 160);
    --color-primary-foreground: oklch(0.12 0 0);
    --color-border: oklch(0.24 0 0);
    --color-input: oklch(0.24 0 0);
    --color-muted-foreground: oklch(0.6 0 0);
marc_meat's avatar

marc_meat liked a comment+100 XP

2mos ago

Here are the full CSS component files for those looking to copy:

resources/css/components/btn.css

resources/css/components/form.css