Skip Meta Data Parsing?

Archived from the Transloadit support forum. Originally posted on January 16, 2011; details may be outdated, see our docs for current behavior. Original thread

Hi Guys,

I’m using the s3 robot exclusively to upload PDF’s. I came across some files that won’t work. The upload 100% but I get an error returned because of BAD META DATA.

See assembly:

REDACTED
REDACTED

Hey Justin,

apologies for you encountering this error. : /

Could you please send me the files that you tried to upload to tim.koschuetzki @ transloadit.com? That will help with debugging this.

Kind regards,
Tim

Did you get the file I emailed?

Hey Justin,

yeah sorry was busy all day. I am looking into the problem right now and will report back once I have found a solution.

Kind regards,
Tim

Hey Justin,

sorry again for not getting back to you earlier.

The error has been fixed. Exiftool had a problem parsing the pdf file. Now we don’t call exiftool anymore on pdf files to avoid these problems.

That means you don’t have a lot of meta data available either. However, you will still have the mime type ‘application/pdf’ available to check for this special circumstance.

Let me know how it’s working for you.

Kind regards,
Tim

Thanks! It seemed to work at first, but now I’m not getting a callback from the jquery plugin.
$(‘#loader’).transloadit({

  autoSubmit: false,
  onError: function(assembly) {
    alert(assembly.error+': '+ assembly.message);
  },
  onResult: function(step, result) {
    $('#url_field').val(result.url);
    $('#url-message').html('File Uploaded!');
  }
});

Neither gets called. The assemblies did complete though. Any ideas?

REDACTED

Never mind,

I didn’t realize that onResult won’t work without wait : true.

It’s working with onSuccess, but I don’t know why it was working before…

Regardless, thanks for the great product and super support!

Actually it still doesn’t work

$('#loader').transloadit({
  autoSubmit: false,
  onError: function(assembly) {
    alert(assembly.error+': '+ assembly.message);
  },
  onSuccess: function(assembly) {
    $('#url_field').val(assembly.results[":original"][0].url);
    $('#url-message').html('File Uploaded!');
  }
});

Sometimes (most of the time?) assembly.results[“:original”] is empty. Any ideas?