News for hackers. Stuff that matters.
Re:PDFy – Instant PDF Host by Hengjie on Tuesday July 15, 2014 @08:02AM (#8035880)
Were you letting users download it via PDF.js before which is why it was document.pdf? It makes sense to download it via PDF.js since the file is actually already loaded once the user renders it.
Re:PDFy – Instant PDF Host by joepie91_ on Tuesday July 15, 2014 @12:52PM (#8037534)
Oh, that might actually be it. The 'download file' button in the pdf.js menu is a different button from the button at the bottom/right hand side of the page (with different code behind it - the pdf.js 'download' button comes stock with pdf.js). I haven't really tested its behaviour much, but it's quite possible that it's calling things document.pdf.

Perhaps I should just remove the pdf.js 'download' button, seeing as there's one elsewhere in the UI anyway.