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

[Help Wanted] Is there a way to get the exact extension of the file regardless of the storage? #56

Open
mjini-dev opened this issue Nov 23, 2021 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@mjini-dev
Copy link

I'm using the library you provided well.
I am contacting you because there is a difficulty in using the library.

My service allows users to select whether to import only gif files or not except gif files, and then take image files from the gallery and send photo files and MIMETYPE to the server.

The problem here is that the name of the file comes differently depending on where the file is imported (there are two places, 'Images_No. 1 in the attached image' and 'Downloads_No. 2 in the attached image' for my phone).

As a result of my own analysis, when imported through 'Images', the gif file name comes the same as the name of the existing file in the flow of <getPathFromLocalUri(), whereas the gif file name comes in the same way as the name of the existing file.
Imported through 'Downloads' takes the flow of <getPathFromRemoteUri()>, and the file name comes in the form of <valueFileName="IMG_${getTimestamp()}$ext" in <getImageFile()>, and the extension is transformed into jpg.

Is there a way to get the exact extension of the file regardless of the storage?

20211123_150954

@Drjacky Drjacky self-assigned this Nov 23, 2021
@Drjacky Drjacky added the enhancement New feature or request label Nov 23, 2021
@Drjacky
Copy link
Owner

Drjacky commented Sep 1, 2022

Please try setOutputFormat from 2.3.17 and let me know if it helped in your case or not.

#51

@Drjacky Drjacky added question Further information is requested and removed enhancement New feature or request labels Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants