upload/download files

uploading to and downloading files from the server works without all of
the weird hacky hardcoded bullshit