--file is multipart/form-data encoded, not www-url-encoded. Try the method demonstrated in this old thread:
--file