Fix upload to make it work (in particular with w3c-gallery server)