Skip to content

Conversation

@das-peter
Copy link

As far as I can tell it is valid to call that method with a resource. As such I think it's worth to attempt to detect the mime-type by the stream contents too.
This should be viable via stream_get_contents() while maintaining the stream pointers using ftell() and fseek().

@das-peter
Copy link
Author

@frankdejonge Thank you very much for your prompt response!
I've tried to address your valuable feedback.
The updated version has the stream sample extraction isolated in a dedicated method as it got complex.

@das-peter
Copy link
Author

@frankdejonge Thanks again for your responsiveness. I think I've addressed your points, I'll let you "resolve" the conversations as you'll be the judge if the solutions are satisfactory.

@das-peter
Copy link
Author

Allowed myself to resolve the reviews in the hope to progress this further

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants