Fixed bug in code that attempts to submit files to Scribd