-
Notifications
You must be signed in to change notification settings - Fork 9
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
File extension not showing (create a file) #3
Comments
Hey 👋, Thank you for taking the time to open this issue and describing the issue in detail. The issue you described is due to the fact that currently the plugin used mime types for extensions and if it can't find mime type for a extension then it assigns unknown mime to those files resulting no extension on saved file. Now, to fix that I just need to attach extension to file name for files with unknown mime type. So, this is should be a quick fix and I will provide a new update with solution soon (Before Saturday). |
hi, |
I'm happy that you found your solution. My plugin uses Android native code to show file manager and uses the SAF access method for all picking and saving files. The benefit of that is we don't need the storage read-write permission in the app (PlayStore is very strict with permissions nowadays). And this approach is what Google suggests if our app is not something like a file manager etc. Now, when using SAF we can only get and access files with paths like "/document/primary:Download/file". These paths are pretty powerful when using them on the Android native side as they provide direct read-write access to files.
|
hi,
i'm currently developing a flutter app for a Master's degree course related to the developing process like branches usage, etc.
The app basically gives the possibility to keep track of expenses in the plain text accounting way.
I'm developing this app "Plain Wallet" with other 3 my colleagues and we would like to publish it on F-Droid.
rWe recognize the efforts of others so there is no doubt that we are going to mention your package on the about page that is in the app also if we will use the app just for us.
Now i explain why i opened this issue.
I already implemented the select current file by using another package and now i need to create one if the user doesn't upload one.
i was looking for a flutter package to do that found your project which looks perfect for that.
I implemented a method createFile() which create a example.journal in the app folder and then i call the PickOrSave().fileSaver and i pass as filePath the file.path value. when the PickOrSave().fileSaver is called the app shows the file manager and at the bottom a text field where i can specify the file name.
In my case i see "example" and not "example.journal". It happens also if i specify the field fileName.
After saving the file in the selected folder i delete the file which is in the app folder.
I store the path which is in result[0] in the sshared preferences and then
when i tap on the button which uses this function i have this logs:
As you can see the file is saved but without an extension. I tried to use different extensions like the examples in the flutter package's page but it doesn't show.
The goal is to save the file with the extensionthat in my case is ".journal so the output should be a file created/saved like "name"+".journal" .
Best regards,
Rocco R.
The text was updated successfully, but these errors were encountered: