Upload Form: Getting a 502 Bad gateway code after clicking on submit button