Increase size of page logged for invalid PDF download
This commit is contained in:
parent
ff798d332b
commit
5f9dc05956
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ Zotero.Attachments = new function(){
|
|||
Zotero.Utilities.Internal.saveURI(wbp, nsIURL, tmpFile);
|
||||
|
||||
yield deferred.promise;
|
||||
let sample = yield Zotero.File.getSample(tmpFile);
|
||||
let sample = yield Zotero.File.getContentsAsync(tmpFile, null, 1000);
|
||||
try {
|
||||
if (contentType == 'application/pdf' &&
|
||||
Zotero.MIME.sniffForMIMEType(sample) != 'application/pdf') {
|
||||
|
|
Loading…
Reference in a new issue