Fix upload-script

There was a cleanup in c987691986c1b6245cc0c2523f1432b580c888e7 which breaks the upload form.
Now it works as expected.