18F / epa-notice

Web interface for viewing and commenting on proposed changes to federal regulations
Other
7 stars 17 forks source link

PDF files posting with 0 bytes #329

Closed yowill closed 8 years ago

yowill commented 8 years ago

Investigate issue surfaced in live test

cmc333333 commented 8 years ago

The regular attachments are passing through but the comment pdf itself is zero bytes. It displays correctly for the user on our side but doesn't appear to make it to regs.gov.

Maybe we need to rewind the file pointer or similar?

jmcarp commented 8 years ago

@vrajmohan: looks like adding comment_pdf.seek(0) after calling cache_pdf will do it.

vrajmohan commented 8 years ago

Thanks, that looks like it.

vrajmohan commented 8 years ago

Verified that this is indeed fixed. Relevant tracking number: 1k0-8pxx-78sa comment (9).pdf