Changed mode for upload.xq.

References #344.