How do you test FileUpload input fields?
I've been checking the docs but I didn't find any example about how to test FileUpload fields. How do you do it? Does anyone have links to code examples?
2 Replies
I found this article about how to test file uploads in Laravel (not in particular in Filament): https://laravel-news.com/testing-file-uploads-with-laravel. I'm giving it a try, now.
using
UploadedFile::fake()
There is an example here https://github.com/filamentphp/filament/discussions/9575#discussioncomment-7532504GitHub
Problem with file hashname while testing file upload component · fi...
Hello everyone ! I'm having issues while testing my application with the file upload component. I'm setting up a profile for authors and I want to be able to upload a profile picture but wh...