Working links except upload link causes 404