Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
uploading image/jpeg in space
I cant figure how to upload an image in space with metadata image/jpeg.
I tried everything and that’s is not working. File is always showing as “application/octet-stream” in space.
I did this :
$this->getClient()->upload($this->getBucket(), $fileName, $content, $privacy, [
‘Metadata’ => ['contentType’ => 'image/jpeg’]
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×