potential fix for PDF upload