Skip to content

Instantly share code, notes, and snippets.

@tobymarsden
Created September 26, 2019 15:43
Show Gist options
  • Save tobymarsden/524be9bbe7b98e79a381211c5bc21ef4 to your computer and use it in GitHub Desktop.
Save tobymarsden/524be9bbe7b98e79a381211c5bc21ef4 to your computer and use it in GitHub Desktop.
afterRefresh
<script>
window.UploadKit = window.UploadKit || {}
window.UploadKit.callbacks = {
afterRefresh: function(data) {
// data is an object like:
// {
// el: <html element of the upload field container div>,
// uploader: <json object representing the upload field>,
// files: <json array representing the uploaded files>
// }
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment