Skip to content

Data too long for column 'name' at row #3849

@fahjan

Description

@fahjan

Addding new image from using
$product->addMediaFromRequest('image')->toMediaCollection('products', 's3');

the result:

Image

SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'name' at row 1 (Connection: mysql, SQL: insert into media (name, file_name, disk, conversions_disk, collection_name, mime_type, size, custom_properties, generated_conversions, responsive_images, manipulations, model_id, model_type, uuid, order_column, updated_at, created_at) values (Download this Premium AI-generated image about An experienced video editor in a modern editing bay multiple screens displaying video editing tools color correction panels moody lighting, and discover more t, Download-this-Premium-AI-generated-image-about-An-experienced-video-editor-in-a-modern-editing-bay-multiple-screens-displaying-video-editing-tools-color-correction-panels-moody-lighting,-and-discover-more-t.jpg, s3, s3, products, image/jpeg, 39229, [], [], [], [], 118, App\Models\Product, 427997fb-436e-4e15-aae9-027d00e13544, 1, 2025-09-06 09:52:48, 2025-09-06 09:52:48))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions