FileUpload refreshed once it hit 100% on modal, addMedia not respecting it model_type
Hi
I am having an issue where the FileUpload which is on modal slideOver Form refreshing on first time once the upload hit 100%. After it refresh, I was able to choose the file again and upload went on without refreshing on second try.
Another issue is I am attaching the media to Application model through Offer model relationship but on submit, it giving me
Call to undefined method App\Models\Offer::getMedia()
error. Querying the Application::where('id', 'record->application_id')
also give the same error. Putting HasMedia
and InteractsWithMedia
on Offer modal works but the model_type was entered as Offer instead of Application inside the database.
Sample code attached as images-
Thank you for any helps.

0 Replies