You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.
I thought that if there is already a list of extensions, maybe an option to get a MimeType from String/NSString/URL/NSURL won’t be that hard-to-add functionality and I think it would be an great addition to this helper.
Hope you’ll be able to add this soon,
Ido.
The text was updated successfully, but these errors were encountered:
@Idomo hi thanks for the kind words!
So you're saying String means getting mime type from a base64 string right, and for URL the code will fetch first few bytes then determine the mime type based on those bytes?
If yes: I think this functionality is better to be implemented in a different repo, the reason is to keep the package small enough so people are free to choose whether to include the "extension" package or not.
No, I think you’ve misunderstood me, I didn’t mentioned to use bytes at all, only from the `String` itself, the chars from the end of it (after the dot).
ב-25 באוג׳ 2019, בשעה 20:15, Sendy Halim <[email protected]> כתב/ה:
@Idomo hi thanks for the kind words!
So you're saying String means getting mime type from a base64 string right, and for URL the code will fetch first few bytes then determine the mime type based on those bytes?
If yes: I think this functionality is better to be implemented in a different repo, the reason is to keep the package small enough so people are free to choose whether to include the "extension" package or not.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
First of all, thanks for this great helper!
I thought that if there is already a list of extensions, maybe an option to get a
MimeType
fromString
/NSString
/URL
/NSURL
won’t be that hard-to-add functionality and I think it would be an great addition to this helper.Hope you’ll be able to add this soon,
Ido.
The text was updated successfully, but these errors were encountered: