pdf bugfix in upload templatetag;