~benthor/mulapisu

a very simple HTTP file uploader

90ad5cf write response incrementally on each received part

10 months ago

afdceae typo fix

2 years ago

#Mulapisu - A very simple HTTP file uploader

I needed a simple way to move a bunch of photos from my Android phone to my computer. Taking a detour through the cloud feels repugnant to me.

So I decided to hack together a very simple go tool that starts a webserver, offers a multipart upload form and simply writes any files POSTed via the form to the directory it was started in.

The idea is that my smartphone and my computer are in the same local WiFi network anyway, so file uploads can happen at fast local speeds.

#Features

  • [x] prints a list of addresses where the server is reachable under
  • [x] extremely basic html form
  • [x] reports success or failure after uploading in an itemized list

#ToDos

  • [ ] sanitize upload filenames
  • [ ] check if a file of the same name already exists
  • [ ] convert the addresses into qr codes for easy smartphone access
  • [ ] better error reporting

#Usage

Simply start mulapisu in the directory where you want to receive files in. Point your phone's browser to one of the URLs that are shown, select files to upload, wait a few moments, done.

NB: Existing files will be silently overwritten