changed the system of uploading files to the server