Skip to content

Instantly share code, notes, and snippets.

@veriojon
Created February 8, 2011 21:20
Show Gist options
  • Save veriojon/817270 to your computer and use it in GitHub Desktop.
Save veriojon/817270 to your computer and use it in GitHub Desktop.
test
function uploadSuccess(file, data, resp) {
Imata.log("Upload done: "+ file);
Imata.log("data: "+ data);
Imata.log("response: "+ resp);
var record = assetTempStore.getById(file.id);
Imata.log("test: " + record.get('status'));
Imata.log("file: " + file.id)
record.set('status', 'Failed');
record.commit();
this.errors = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment