Implement local file upload with form.
This fixes the issue that after selecting a file it cannot
be uploaded directly again without selecting another
file in between.