Fix #354 File upload does not work