Updated the upload multipart handler