Rouji / Hupl

Android app for filesharing via Http UPLoads
GNU General Public License v3.0
21 stars 3 forks source link
android http upload

Hupl

Short for Http UPLoad (imaginative, I know)

Simple Android app, that lets you upload files to servers through the share menu. You can configure any servers you want, but also feel free to use any of the preconfigured ones.

Should work with most simple filehosts, that take files via POST. At the very least, it works with ones based on these:

Support for more complicated http-based uploads, (S)FTP, etc. might follow in future versions.

Other features:

Binaries are available as releases on Github: https://github.com/Rouji/Hupl/releases
and on the Play Store: https://play.google.com/store/apps/details?id=eu.imouto.hupl

Uploaders

Uploader configs are stored, and can be imported, as JSON. Importing works by either pasting an URL in the appropriate menu, or clicking a web link that points to a .json or .hupl file.

Http Uploader Json Example

HTTP is currently the only supported uploader type. Here's an example of what a config for that might look like:

{
  name: "example uploader",                     //(optional)human-readable name; pulled from the filename, if not given here 
  type: "http",                                 //type of uploader
  targetUrl: "https://example.com/upload.php",  //url to POST to
  fileParam: "myfile",                          //parameter containing your filename
  responseRegex: "<a href=\"(.*)\">",           //(optional)regex to filter the server's response (always uses the first capturing group)
  authUser: "hoge",                             //(optional)http basic auth user
  authPass: "secret"                            //(optional)http basic auth password
}

Default Uploaders

A few preconfigured uploaders get baked into the .apk and imported at first launch of the app. The files for this are in app/src/main/assets/uploaders.

Building

This repo contains an Android Studio (v2) project. You should be able to open it with that and just run/compile from there.

Known Issues

Closing the app (e.g. by swiping the main activity off the recent apps screen) sometimes clears notifications of finished uploads. (Though it shouldn't ever cancel ongoing uploads.) This is "working as intended", and I'm not aware of any workaround for this on Android.
If this ever happens to you, the uploads will still be listed in the history.