Pass the correct information to the CURL call when setting data for uploaded files. GH issue #1834