filestack / filestack-js

Official Javascript SDK for the Filestack API and content ingestion system.
https://www.filestack.com
MIT License
206 stars 76 forks source link

Handling failure or unsuccessful response for preview/slide task #442

Open codemilan opened 3 years ago

codemilan commented 3 years ago

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.