blueimp/jQuery-File-Upload — pull request #2889 by danxshap (2014-01-19 00:37:38+00:00)
Title: Always clear fileUploadPreview directive element on preview change

I have a common use case in which I am only letting the user upload one image file and I am showing a preview with the `fileUploadPreview` angular directive.

If the user selects a good image file, it appears in the DOM, but then if the user changes the file to a text file, for example, which has no preview, the directive needs to clear out the preview element because otherwise it will still contain the (stale) preview from the original image file.