Comments (4)
The returned path is a content provider path (not a file system path). What do you need the path for? For reading the file or displaying the path?
The function could be improved to return the full content provider URI and not only the path. So instead of returning
/document/primary:Download/image.jpg
it could return
content://com.android.externalstorage.documents/document/primary:Download/image.jpg
For more information about content providers see:
https://developer.android.com/guide/topics/providers/content-provider-basics
See also:
https://stackoverflow.com/questions/5657411/android-getting-a-file-uri-from-a-content-uri
But I am not sure how is it possible to utilize the returned content provider URI in Flutter/Dart unless you have some related plugin which accepts content provider URIs.
from flutter_file_dialog.
The returned path is a content provider path (not a file system path).
What do you need the path for? For reading the file or displaying the path?
We only need the path (the actual path to the existing file in the filesystem, not a new copy/cache) so we can tell the backgound service (Retroshare) to add the file to it's shared files. Retroshare will then read the file when it needs to. The rationale behind this is that the user must be able to share existing files without taking up additional space by copying them.
Is this possible?
from flutter_file_dialog.
This is now available in 2.1.0, see OpenFileDialogParams.copyFileToCacheDir
from flutter_file_dialog.
Hi,
This return the filepath in android uri scheme, example:
content://com.android.providers.media.documents/document/image%3A2355
Is there a way to get absolute file path? thanks
from flutter_file_dialog.
Related Issues (20)
- SaveFileDialogParams : OneDrive directory is not displayed HOT 6
- Wrong return path on not choosing folder HOT 1
- Missing file with building for ios
- in ios cant load csv txt xls HOT 1
- build issue in flutter master HOT 1
- Saving file does not overwrite existing unless selected HOT 4
- Extra content being saved to end of file sometimes HOT 6
- Implemented get absolute path for Android using PickiT library HOT 1
- Fatal Exception: java.lang.IllegalStateException Reply already submitted HOT 4
- File dialog now image only? HOT 1
- [bug][invalid_file_extension] Set file extension filter when picking a document.
- Android: Only download or recent available as targets for save HOT 5
- Android: path is incomplete after saveFile HOT 4
- If file already exist then the newly saved file gets renamed after file extension HOT 1
- [Bug]: MissingPluginException (MissingPluginException(No implementation found for method saveFile on channel flutter_file_dialog)) HOT 1
- Support for Windows ?
- Saving file with overwrite makes file unreadable by android OS
- DirectoryLocation custom class HOT 1
- pub.dev release HOT 1
- save multiple File
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_file_dialog.