knime

"An illegal attempt was made to upload a document" when passing a url in a FormEncodedHTTPEntityCreator


I am uploading a file with a post request. In the form data, being inspired by curl I have given the following form parameters type=144&parent_id=819449945&name=success5&file=@D:\CustomTools\omicron\test.xlsx

I then pass this to an HTTP Entity Creator hoping for my file to end up at the other end. Instead I get the following error:

An illegal attempt was made to upload a document

What does this error mean in the specific case of Knime, and how can I fix it?

enter image description here


Solution

  • Don't add the &file=@D:\CustomTools\omicron\test.xlsx, this syntax is not supported. Instead this is the part which is provided by the Multipart Encoded HTTP Entity Creator node.