Skip to content

Commit 83db901

Browse files
committed
Add public ID and console log out the rest
1 parent 24cb48e commit 83db901

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

upload/tutorial-uploads.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ <h1>Tutorial Uploads</h1>
1313
<p>Upload your video tutorials here. They are uploaded to the 'training' folder of the 'cloudinary' product environment.</p>
1414
<button id="upload_widget" class="cloudinary-button">Upload Video</button>
1515
<p id="thanks"></p>
16+
<p id="publicId"></p>
17+
1618
</div>
1719
<script type="text/javascript">
1820
var myWidget = cloudinary.createUploadWidget({
@@ -23,6 +25,8 @@ <h1>Tutorial Uploads</h1>
2325
}, (error, result) => {
2426
if (!error && result && result.event === "success") {
2527
document.getElementById("thanks").innerText = "Thank you!";
28+
document.getElementById("publicId").innerText = `Public ID: ${result.public_id}`;
29+
console.log(result);
2630
}
2731
}
2832
)

0 commit comments

Comments
 (0)