day 78 - experimented with multipart forms (file uploads) using Server Actions in Next.js - refactored my 'createAnimal' Server Action (saves animal item to DB) to now accept image uploads ( feels much more flexible & realistic) #80DaysOfNextJS #NextJS15 #React #TypeScript
- added validation & error handlin (if no file or file > 3mb -> return error) - upload process -> create upload dir (if missin), convert file obj to buffer, save to /public/uploads and finally generate public URL for Next to serve #80DaysOfNextJS #NextJS15 #React #TypeScript
- works great for small/medium file uploads but ran into some 'Error: Body exceeded limit' issues - curious to see how it behaves with much larger uploads hmm🤔 #80DaysOfNextJS #NextJS15 #React #TypeScript
United States Trends
- 1. Rosalina 14.3K posts
- 2. Bowser Jr 4,889 posts
- 3. Crypto ETFs 2,957 posts
- 4. Jameis 3,946 posts
- 5. Good Wednesday 30.7K posts
- 6. #wednesdaymotivation 4,361 posts
- 7. Benny Safdie 2,135 posts
- 8. #SuperMarioGalaxyMovie N/A
- 9. Hump Day 14.7K posts
- 10. H-1B 57.4K posts
- 11. #Talus_Labs N/A
- 12. #Wednesdayvibe 2,302 posts
- 13. #لماذا_لا_تقبل_الهدنه 2,725 posts
- 14. operation dirtbag 1,560 posts
- 15. Michael Wolff 1,546 posts
- 16. Prowler 1,470 posts
- 17. Captain Marvel 1,593 posts
- 18. ADOR 74K posts
- 19. Awkwafina N/A
- 20. Happy Hump 9,333 posts
Something went wrong.
Something went wrong.