Using GlowUpload to add a file to custom file store. Is there a new way to do this in V12? If not, is there a call back in the glowUpload that lets me know when the file is 100% uploaded to temp file storage?
Using GlowUpload to add a file to custom file store. Is there a new way to do this in V12? If not, is there a call back in the glowUpload that lets me know when the file is 100% uploaded to temp file storage?
Here is the v12 Developer Training for working with uploads: Working with User-uploaded Files There are no notable changes to this process in v12.0.
Are you looking for the 'glowUploadComplete' js event for monitoring completion?
Probably - some event I can attach to so I know when the glow upload is at 100%... Is that just a property I can put in the json?
So like this?
jQuery("#prereq-file").glowUpload({ uploadUrl:"$core_v2_uploadedFile.GetUploadUrl($contextId)", height:50, glowUploadComplete:function(){ // my code here }, selectFileLabel: "Browse for File", uploadedFormat: "<div style=\"overflow: hidden; text-overflow: ellipsis; color: #000; padding: .25em;\"><div style=\"float: right; color: #3a3; margin-left: .25em;\">Saved, click button below to finish Uploading.</div>{0}</div>'", uploadingFormat: "<div style=\"overflow: hidden; text-overflow: ellipsis; color: #000; padding: .25em;\"><div style=\"float: right; color: red; margin-left: .25em;\">Processing...Please Wait.</div>{0}</div>'" });
Check the link above for syntax details, but more like:
uploadButton.glowUpload({ ... }) .on('glowUploadComplete', function (e, file) { ... })
Check the link above for syntax details, but more like:
uploadButton.glowUpload({ ... }) .on('glowUploadComplete', function (e, file) { ... })
Perfect. Thanks