Fix upload regressions

Fix uploading trough the webinterface after the changes made to support public uploading.

cc @butonic @DeepDiver1975 @rgeber @karlitschek