diff --git a/cloudinary_cli/templates/html/upload_widget b/cloudinary_cli/templates/html/upload_widget index 1135a24..4ac43bd 100644 --- a/cloudinary_cli/templates/html/upload_widget +++ b/cloudinary_cli/templates/html/upload_widget @@ -6,7 +6,7 @@ var myWidget = cloudinary.createUploadWidget({ cloudName: '{{cloud_name}}', - upload_preset: 'preset1', + upload_preset: '', // Create an unsigned upload preset in the Cloudinary Console }, (error, result) => { if (result.event == "success") { console.log(result.info) // result.info contains data from upload } }) diff --git a/test/test_modules/test_cli_make.py b/test/test_modules/test_cli_make.py index 607bcae..56bf36c 100644 --- a/test/test_modules/test_cli_make.py +++ b/test/test_modules/test_cli_make.py @@ -40,6 +40,7 @@ def test_cli_make_upload_widget(self): self.assertEqual(0, result.exit_code) self.assertIn('upload_widget', result.output) self.assertIn(f"cloudName: '{cloudinary.Config().cloud_name}'", result.output) + self.assertIn("upload_preset: ''", result.output) def test_cli_make_video_player(self): result = self.runner.invoke(cli, ["make", "video_player"])