1
Solved

Pick photos action returns with uri that isn't useable when using send intent

In short, using Pick Photo action returns with the images URI path but when trying to use it in send intent for example it fails. To fix that you need to get the full path using SQL Query like here:

https://www.reddit.com/r/tasker/comments/1enzuix/how_to_copy_filesmedia_from_your_android_phone_to/

A1: Simple Match/Regex [
     Type: Regex
     Text: %sb_uris()
     Regex: (?!.*/)(?<file_num>.+) ]

A2: SQL Query [
     Mode: URI Formatted
     File: content://media/external/file
     Columns: _data
     Query: _id LIKE '%file_num'
     Variable Array: %fullpath
     Use Global Namespace: On ]

The example is shown below the title: "Pick Photos/Media dialog".

Can you maybe have another variable/array inside the Pick Photos action that will hold the full path.
 

1 reply

It's not always possible to get the full path for every file, even with the SQL query. Tasker has the option to "Copy To Cache" so you get a usable path every time.

Topic is closed for comments