fix upload issue by uncommenting scale method
fix issue with uploading files in production