Php Application Octet Stream

I am also having this issue. If i open the file directly from the servers file system it opens with Office in protected mode (as expected), but when i attempt to download if using IE i get the following response header.

Stream

Join GitHub today

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Sign up

Php Curl Application/octet-stream

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.

Octet

Already on GitHub? Sign in to your account

Comments

commented Aug 23, 2013

I am using a very small script to keep my image folders in sync with s3.

I am noticing that the content-type for all my images are being uploaded as 'binary/octet-stream'. All the images have appropriate extensions. Not really sure where to start looking.

Any advise is appreciated.

commented Aug 23, 2013

If I remember correctly, if you don't explicity give each file you upload a MIME type, it will receive the default MIME type of the bucket. Not sure what uploadDirectory() is doing though.

commented Aug 23, 2013

Actually, the SDK guesses the mime-type of a file based on file extensions. I suspect that the issue here is that the file extensions are in uppercase and the checks are not case-insensitive.

commented Sep 5, 2013

This has now been addressed in Guzzle: guzzle/guzzle@647cd46. I'll tag a release of Guzzle in the next week or so, but you could run off Guzzle's master branch in the meantime if needed.

closed this Sep 5, 2013

commented Sep 5, 2013

Php content-type application/octet-stream

if I use

How can I start using the latest master branch of Guzzle? I am not that familiar with phar files. Any ideas are appreciated.

commented Sep 5, 2013

You would not be able to use the latest master version of Guzzle. If you use the phar, then this update will only be available to you in the next tagged release of the SDK.

commented Mar 20, 2017

Not an issue, but related: if you are using this package to bind the PHP internals (file_exists, getimagesize, etc) and you're using those to determine MIME type, your server will download the file locally during some of those requests, and if your server fills up, it may report the mime-type as application/octet-stream instead of the file's true MIME type. Clean up your server, and the functions will report accurately again.

Php Application/octet-stream Post

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment