Probably this message should be before calling to ```upload_file```