fixes routing for uploads