fix /upload not working bug