Debugging for non-PDF PDF download
This commit is contained in:
parent
ae39584c68
commit
e6b4dde472
1 changed files with 1 additions and 0 deletions
|
@ -299,6 +299,7 @@ Zotero.Attachments = new function(){
|
|||
Zotero.MIME.sniffForMIMEType(str) != 'application/pdf') {
|
||||
Zotero.debug("Downloaded PDF did not have MIME type "
|
||||
+ "'application/pdf' in Attachments.importFromURL()", 2);
|
||||
Zotero.debug(str);
|
||||
attachmentItem.erase();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue