correctly pass file to uploader