-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File does not exist #63
Comments
OK, I've been looking into this a bit more. I'm not totally sure that this is an advanced-nova-media-library. It appears as though the uploaded file in I've quickly knocked up a simple form to try and debug the issues I am having with the files.
It looks as though the file in |
OK. I've tried everything that I know. I've downgraded to Laravel 5.7 and PHP 7.1 and I still get the same issue. Weirdly this issue only happens on new resources, when updating the resource it updates the image without any issues. This must be a clue to what is going on here. |
@simonbowen are you using any model observers by any chance? I am seeing the exact same error during a very specific situation that I cannot seem to figure out for the life of me. I have tried tracing it back to no avail. I have a MediaObserver with a created() method watching for newly created Media. Then it takes the $media->model, updates a property, and tries to re-save the model. This re-save triggers:
Even if I put the model into a new var like so, it still fails: Stumped why it wouldn't work. The only way was to push that logic into a job, dispatched from the same place in the observer. |
Hi @nickpoulos Actually I have got a model observer on the resource that I am trying to use with this package, on the I've since switched across to another media library package. It's not ideal though since it doesn't give the option to attach images when creating a resource, only when viewing it. If I get a chance I'll try and revert back to this package to see if changing the queue driver to something that is actually async resolves the issue for me. |
@nickpoulos You're spot on, I've moved across to a redis queue connection and I am not seeing this issue anymore. |
I'm getting this error when attempting to save a new model in laravel nova with a multiple image upload file definition.
Images::make('Images', 'venue_images') ->multiple(),
The text was updated successfully, but these errors were encountered: