Uploading Files via Android Share button #1864
BaccanoMob
started this conversation in
Show and tell
Replies: 1 comment
-
|
Awesome walkthrough. Will be adding native share functionality fairly soon to share from filebrowser quantum to other apps. Would be nice to have both directions documented on the official docs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Important
This only works for a single
FILEnot folders. If you really need to upload a folder or a number of files, you will need to zip them first. While you can choose multiple files and share, this configuration will only accept the first file in the list.Note
This will work with any share button that opens a popup (in technical terms,
Share Intent) as long as its a file.Uploading files from Android is a real pain. You have to use the android file picker to navigate even if you want share a photo (for example, a photo from a few years back that is deep buried down, etc) that you opened and its in front of you. If you follow the below steps you can now just use the share button to upload to filebrowser instead.
To share files from Android's share button, you need to download another app called HTTP Shortcuts. The download links are in that link. Well it will look really intimidating but thats only if you do it from scratch (if its not let me know Ill update this so its easier to follow).
Steps to follow
Import/Export.Global variablesand update the variables' value according to your instance (leave the other checkboxes as is, I have already configured to be working properly AFAIK, but let me know if there are any issues).filebrowser_instance=>https://quantum.domain.tld/(can be http/https based on how you setup but MUST end with a/)filebrowser_api=> JWT token from WebUI. Settings > API Keys > New > Choose the dates. I think only the API needs to be checked.filebrowser_source=> Name of the source you want to uploadfilebrowser_path=> The path in source where you want to upload (MUST start with/excluding the source name)upload_file_name=> Name of the file (do not worry, I made it work so it auto retrieves from share intent)/Uploadsfolder at the root of the source since you will not have a UI to navigate through the folder. So you can move the uploaded files later.Upload to Filebrowser(name of the shortcut btw) or findHTTP Shortcutsthe app itself. Now you will be prompted for the remaining variables. Type in the source and path. After a couple of seconds you should see a notification that its successful.{filebrowser_source}and{filebrowser_path}(including{}) with your info.Current drawbacks
Resources#1865)Beta Was this translation helpful? Give feedback.
All reactions