Skip to content
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

Uploading failed #419

Open
lamwj98 opened this issue Oct 30, 2023 · 0 comments
Open

Uploading failed #419

lamwj98 opened this issue Oct 30, 2023 · 0 comments

Comments

@lamwj98
Copy link

lamwj98 commented Oct 30, 2023

[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'media.model_id' in 'where clause' at ...

Actions taken:
I have edited the permission.php file to change it from model_id to mediable_id (which is what I have in my db).

What I want to do:
I have a product resource and through this resource I want to allow user to upload images and save the images into S3 bucket. Thereafter create a Media model for each images and pass the url generated, linking Media model to the product model.

Any help will be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant