File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments