Added endpoint for uploading a file