remove dependency on saving file when uploading