How can I make the file upload form submit when a file is uploaded?