Created a separate file upload js file for the object editor