-
OK, I feel like I must be missing something very simple but I've lost track of everything I've tried... First, my configs: .env config/filesystems.php has my s3 disk defined: media-library.php is stock generated by artisan, the disk name you can see above is set in my .env file: config/livewire.php My form blade view contains: My controller has: And now what happens...
Any suggestions and help is greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Seems like running save() on your model causes all sorts of problems. I went back to the example code at https://github.com/spatie/laravel-medialibrary-pro-app and rewrote my queries to use the create method rather than an insert. As soon as I took the $model->save() out of the equation everything worked as expected. I ended up creating a local media disk for the temp uploads and then when I process the upload I send it over to my s3-media disk. |
Beta Was this translation helpful? Give feedback.
Seems like running save() on your model causes all sorts of problems. I went back to the example code at https://github.com/spatie/laravel-medialibrary-pro-app and rewrote my queries to use the create method rather than an insert. As soon as I took the $model->save() out of the equation everything worked as expected. I ended up creating a local media disk for the temp uploads and then when I process the upload I send it over to my s3-media disk.