Waboodoo / HTTP-Shortcuts

Android app to create home screen shortcuts that trigger arbitrary HTTP requests
https://http-shortcuts.rmy.ch
MIT License
1.17k stars 113 forks source link

Automatically Pick file for HTTP Request #366

Closed milouk closed 1 year ago

milouk commented 1 year ago

Is your feature request related to a problem? Please describe. My objective it to automatically push another application's export file to a self hosted server using HTTP Shortcuts. However, I would like this to be done automatically on a specific interval instead of having a picker pop up every time

Describe the solution you'd like Ideally we could specify the location and name of the file to POST and HTTP Shortcuts would automatically fetch it instead of popping up the Picker

milouk commented 1 year ago

That would be similar to

curl -X POST -F "file=@/sdcard/exported_data.csv" https://your-server-url.com/upload-endpoint. Basically cut out the picker part and specify a fixed path for a file @Waboodoo

Waboodoo commented 1 year ago

Yeah, that's the idea. Unfortunately, it's more tricky than that on Android, as an app can't just access files by path from the file system, unless it holds the permission for that, and I really really don't want to give that permission to the app. There are other ways, they're just more involved, but I will look into it when I find the time. It's high up on my priorities list for new features.

Waboodoo commented 1 year ago

As of version 3.4.0 (which is being released now), it is possible to select a specific file to be used for file uploads, without opening the file picker every time.