-
Notifications
You must be signed in to change notification settings - Fork 33
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
Wrong content type when resource:copy to Minio #56
Comments
This is a workaround for flownative#56
This is a workaround for flownative#56
This is a workaround for flownative#56
Well, you say
Then why is the resource imported (again) using Or am I misunderstanding something here? |
Hey, this is about copying resources from local persistent storage to S3 storage. In |
Using Minio and evaluating the one-bucket setup i face that copied resources always get the content type application/octet-stream.
In https://github.com/flownative/flow-aws-s3/blob/master/Classes/S3Storage.php#L225
getMediaType()
always returnsapplication/octet-stream
because$temporaryPathAndFilename
does not have the original filename containing the fileExtension which is used ingetMediaType()
to detect the content-type by filename.What works is using
mime_content_type($temporaryTargetPathAndFilename)
, but during the fact, that the correct content type is already in theneos_flow_resourcemanagement_persistentresource
table, it's rather a workaround.The text was updated successfully, but these errors were encountered: