Share to: HTTP Post + Media File #394
Replies: 3 comments 1 reply
-
Currently, there's no simple way to define the order in which variables are resolved. I will change this for the next version so that they are resolved in the same order as they appear on the Variables screen, such that you can change the order by re-arranging them there.
No, this is not possible
You could achieve this via the Scripting feature. Assuming you have a variable "myVariable" and you want to abort the execution if it doesn't have any text, you could do this by opening the shortcut editor, going to the Scripting section and in the "Run before execution" field enter code like this: if (getVariable("myVariable") === "") {
abort();
} or if you wanted to prompt for text in this case, you could do that with code like this instead: if (getVariable("myVariable") === "") {
const text = prompt("Please enter text");
if (!text) {
abort();
}
setVariable("myVariable", text);
} More on Scripting here: https://http-shortcuts.rmy.ch/scripting
Yes, this is possible, but with some limitations. If you use a form upload instead of a JSON body for your request, you can add file parameters. This will allow you to share files into the app and use them as part of the request. This may however not be compatible with also sharing text at the same time. There is no option to take a file from the clipboard. More on file sharing here: https://http-shortcuts.rmy.ch/advanced#share-files |
Beta Was this translation helpful? Give feedback.
-
Thanks, not sure to understand the last part : In the Shortcut I need
In my case it seems
Is it possible and how to use the file shared by "share to" feature in the form upload. I missed something or is it the part that is not possible ? |
Beta Was this translation helpful? Give feedback.
-
Sorry I might be stupid, I'm missing somthing:
Ok it works,
It works with a Node-RED server but not with Airtable. I will route it correctly :-) |
Beta Was this translation helpful? Give feedback.
-
Thanks for this amazing tool !
I use Shortcuts to "share to" an AirTable Database like a WebClipper.
From any app I get the "Shared stuff" + a prompt for Title and Description (filled from clipboard).
But I found few limitation or don't know how to handle it ?
The more interesting part: Many app with photo or audio (like the recorder) share the file itself ! But the Shortcut app display an erreur close to : "There is no link with share to for this content"
Would it be possible to share to file ?
As for now, I use POST request with JSON content but maybe I can use form upload ? but in the options there is no "files from the clipboard".
Any ideas to build that kind of universal app clipper would be very welcome !
Beta Was this translation helpful? Give feedback.
All reactions