Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Determine extension from String/URL #14

Open
Idomo opened this issue Aug 23, 2019 · 2 comments
Open

Determine extension from String/URL #14

Idomo opened this issue Aug 23, 2019 · 2 comments

Comments

@Idomo
Copy link
Contributor

Idomo commented Aug 23, 2019

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 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.

@sendyhalim
Copy link
Owner

@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.

@Idomo
Copy link
Contributor Author

Idomo commented Aug 25, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants