FilamentF
Filament2y ago
Kaan

Awcodes | Curator Image Upload Error

Hello. Whenever I try to upload and save an image on the create page, I get the following error:
SQLSTATE[HY000]: General error: 1 table media has no column named alt
INSERT INTO
  "media" (
    "alt",
    "title",
    "caption",
    "description",
    "disk",
    "directory",
    "visibility",
    "name",
    "path",
    "exif",
    "width",
    "height",
    "size",
    "type",
    "ext",
    "updated_at",
    "created_at"
  )
VALUES
  (
    ?,
    ScreenShot,
    ?,
    ?,
    public,
    media,
    public,
    efb27e74 - b093 -4285 - 88c2 - 1876e2a2086a,
    media / efb27e74 - b093 -4285 - 88c2 - 1876e2a2086a.jpg,
    { "FileName": ":-",
    "FileDateTime": 1714334960,
    "FileSize": 73685,
    "FileType": 2,
    "MimeType": "image\/jpeg",
    "SectionsFound": "IFD0",
    "COMPUTED": { "html": "width=\"813\" height=\"958\"",
    "Height": 958,
    "Width": 813,
    "IsColor": 1,
    "ByteOrderMotorola": 1 } },
    813,
    958,
    73685,
    image / jpeg,
    jpg,
    2024 -04 -28 20: 09: 22,
    2024 -04 -28 20: 09: 22
  )
Solution
Yes, sorry my stupidity. 4 days ago I installed spatie's media librrary and they were in conflict 🙂
Was this page helpful?