fixed a file upload problem for the Plone 4.x.