Skip to content
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.

Already on GitHub? Sign in to your account

Detecting type of data were picked #25

Closed
Elamuruga opened this issue Jan 21, 2021 · 1 comment
Closed

Detecting type of data were picked #25

Elamuruga opened this issue Jan 21, 2021 · 1 comment

Comments

@Elamuruga
Copy link

Elamuruga commented Jan 21, 2021

@ScottPetit @jotaemepereira @samsymons func attachmentPickerMenu(_ menu: HSAttachmentPicker, upload data: Data, filename: String, image: UIImage?) {}
In the above method, Could you please provide additional information like fetched or picked data type? I mean whether it's picked Video or Audio or image or etc. It will be very useful to handle further. Thanks in advance

@ScottPetit
Copy link
Contributor

@Elamuruga I don't think we'll be updating this API. I don't think of this as the responsibility of the attachment picker and can be derived by clients by looking at the the pathExtension of the filename or by looking at the data itself.

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

No branches or pull requests

2 participants