make sure schema in after_upload is a valid json string