All files uploaded to S3 have mime type application/octet-stream
Apologies if I’m missing something basic, I only have a limited knowledge of S3 (so wonder if this is a permisssions issue). Everytime I upload a file, irrelevant if its a jpeg, png or SVG - ExpressionEngine logs the correct mime type, however, in S3 its marked as application/octet-stream.
A quick temporary hack which got me going:
Around line 50 on /users/addons/treasury/Service/FileHandling/amazon_s3.php
'ContentType' => mime_content_type($sourcePath) to the $s3->putObject array.
It should now be:
$s3->putObject(array( 'Bucket' => $locationModel->bucket, 'Key' => $key, 'SourceFile' => $sourcePath, 'ACL' => 'public-read', 'ContentType' => mime_content_type($sourcePath) ));
August 24, 2017, 8:43 am
I haven’t run into this issue before but the fix you mention does seem reasonable. I’ll look into it.
August 24, 2017, 9:42 am
Ansel 1.0.5 has been released. https://buzzingpixel.com/software/treasury/changelog/1-0-5
August 29, 2017, 9:57 pm
Your account with the old support system does not carry over to the new support system. The new system is all tied together and connected with your account for purchasing and licenses. If you have a license, you have an account and you can log in with that email address and password. If you have not set a new password yet, you can do so with the forgot password link. Very sorry for any inconvenience.