Attempted to fix cleaning and file upload issue