minimal fix to make upload work with w3c-gallery app