-
Hello.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello, To address your issues:
// Read data from the shared file, e.g. the file's name
const fileName = selectedFiles[0].name;
// Store the data into a variable (make sure to set the variable up first)
setVariable('my_file_name', fileName);
// Schedule the execution of another shortcut, which will make the HTTP request
enqueueShortcut('my_other_shortcut');
// Stop the execution of the current shortcut to prevent it from uploading the files
abort(); In your second shortcut, you could then use the variable's value, e.g. as part of the HTTP request body or in a script. You'll find more information here:
Hope this helps somewhat. |
Beta Was this translation helpful? Give feedback.
-
Hello, thank you for the detailed answer, I admire the quality of your software product and documentation for it! Enjoy 👍 |
Beta Was this translation helpful? Give feedback.
Hello,
(First of all, sorry that I wasn't able to reply to your email yet, but I suppose answering here is easier now anyway.)
To address your issues:
This is currently not possible, and will likely remain so. Android's vision is going more and more in the opposite direction actually, where the concept of a file system and file paths are abstracted away (mostly for reasons of privacy and interoperability) and therefore not available to the apps that interact with the files. In fact, the data that is shared with the app might not even be a real file, it might be a virtual document, coming from cloud storage or generated on-the-fly. Because of this, there's no (reliable enough) way for th…