Fixed issue with creating form with file input but method for form does not set

When FileInput submits to the backend, it uses HTTP GET method instead of POST, so in this commit i fix this little problem.