I sometimes get INTERNAL_TOOL_ERROR with non-image files

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

I use transloadit for attachments to posts. If the attachment is an image, I want to resize it to a thumbnail and upload both the attachment and thumbnail to S3. If it’s not an image, I just want the original to be uploaded. (Template ID: REDACTED)

That has worked fine until now. Today, however, I discovered that some non-image uploads result in an INTERNAL_TOOL_ERROR. Examples are assemblies REDACTED and REDACTED, both of which are .iso files.

I think correct behavior is for the pipeline to continue even though one step fails. (Of course, anything using the result of that step will not be able to run.) Is this something you can fix?

Hey vebjorn,

the problem is that these. iso files were identified as “application/x-iso9660-image” mime types, which are image types and which is correct according to http://en.wikipedia.org/wiki/ISO_image.

Are you sure these files should be .iso files?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

The mime type is correct. A user tried to attach the contents of some DVD-ROMs. This is an “image” type only in the sense of “disk image.” It is not the kind of image that can be resized.

You should perhaps be looking for mime types that _start_ with “image/” rather than mime types that contain “image”?

You are correct. We are going to fix this.

Thank you for the suggestion.

I’ll let you know once it’s shipped.

Hey Vebjorn,

sorry that I didn’t get back to you about this, but we fixed this quite a few weeks ago.

Thanks again for reporting this.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

My QA guy had discovered it already, but thanks for letting me know.

Vebjorn

Alright, cool. Closing this then.