Skip to content

Determine attachment content_type from filename extension #104

@mkoeppe

Description

@mkoeppe

Currently we use application/octet-stream for everything, but the importer complains:

now="2023-01-10T14:38:37Z" guid=cae4a192-8fed-11ed-84b0-230110063154 command=import fn="GitHub::Migrator::AttachmentImporter#import_model" class="ActiveRecord::RecordInvalid" model_name=github/migrator/attachment_importer/user_asset_extended_content_types model_id=1 field=name validation_error="has a file extension that does not match the content type"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions