thesnakebite liked a comment+100 XP
1mo ago
@thesnakebite thank you! You literally saved me <3
thesnakebite liked a comment+100 XP
2mos ago
@thesnakebite nice work man
thesnakebite wrote a comment+100 XP
2mos ago
thesnakebite liked a comment+100 XP
2mos ago
@thesnakebite great workaround!
thesnakebite wrote 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!
thesnakebite wrote a comment+100 XP
2mos ago
thesnakebite wrote a reply+100 XP
2mos ago
thesnakebite started a new conversation+100 XP
2mos ago
thesnakebite wrote a comment+100 XP
3mos ago
@calebporzio 23 hours. Incredible. 🔥 Thanks Caleb ✨
thesnakebite liked a comment+100 XP
3mos ago
@thesnakebite fixed in 4.0.1
thesnakebite wrote a comment+100 XP
3mos ago
@andrewmenich Same mistake... 👨🏻💻🌍Livewire😍
thesnakebite started a new conversation+100 XP
3mos ago
Following Jeffrey, Jeremy, and Simon's Workshop the Laravel, I extended the application with search, bookmarks, and guest access. Now I want to add image/video uploads to posts.
Stack: Laravel 12 + Inertia v2 + Vue 3
Requirements:
- 1-4 images OR 1 video per post
- Image preview before publishing
- Display in the timeline
Options I'm considering:
- Native Inertia
useForm()+ file inputs - FilePond (excellent UI, but overkill?)
- Spatie media library
Questions:
-
Which approach is best suited for Twitter-style posts?
-
Any drawbacks to Inertia and file uploads?
-
Direct storage or temporary uploads?
I'm inclined to start simple and iterate. What do you think? 🙏
thesnakebite wrote a comment+100 XP
4mos ago
Hi team, First of all, thank you so much for the content; it's been very valuable to me. Second... I'm extending PIXL to allow users to upload images and videos along with their text posts. What's the recommended approach for this in 2025? Spatie Media Library, Laravel native storage, or is there something newer I should consider? Thanks for any guidance.