upload form working correctly. files can now be uploaded and written to the server.