You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a file uri (like content://com.android.providers.downloads.documents/document/msf%3A31), is there a way to get the name and extension of that file?
I thought it would be possible with the Filesystem plugin but it is not.
I can use that uri easily as img or audiosrc with Capacitor.convertFileSrc() but I never get the original file name to show it to the user. Is this possible directly with capacitor or a plugin is needed?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If I have a file
uri
(likecontent://com.android.providers.downloads.documents/document/msf%3A31
), is there a way to get the name and extension of that file?I thought it would be possible with the
Filesystem
plugin but it is not.I can use that
uri
easily asimg
oraudio
src
withCapacitor.convertFileSrc()
but I never get the original file name to show it to the user. Is this possible directly with capacitor or a plugin is needed?Beta Was this translation helpful? Give feedback.
All reactions