filestack-js
filestack-js copied to clipboard
Handling failure or unsuccessful response for preview/slide task
Is there any way to know that the specified filehandle is previewable without actually running the preview task ?
I'm using document previewer with one of the below way:
client.preview('handle', {id: 'domid'})
OR
<iframe src="preview_generated_url">
on failure for both the cases, that is preview URL returning other than success codes, I would like to show alternative default image, how can I approach. Thank you.