Make pupload work with #tree.