tweaks MdogoCURL, adds file upload support