make uploading files from browsers work properly. Fixes #79