Fixed warning when body is undef
Work-in-progress with file upload