Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Edith1
Creator
Creator

tFileFetch - How to append ;type to File Path?

I'm trying to upload a file in tFileFetch and keep getting error "

File is not a normal file

." when I append ;type=text/csv to the file name on advanced settings.

The API endpoint requires this format: --form 'input_data=@"REPLACE_WITH_PATH_TO_FILE";type=text/csv'

I got it to work in Postman and in curl command, but not in tFileFetch.

Any idea how would I pass this to the URL?

-F input_data=@C:\Users\oneman\Postman\files\upload.csv;type=text/csv

Labels (2)
3 Replies
Anonymous
Not applicable

Hello,

In advanced settings, upload file settings, could you please try to set Content-type as "application/octet-stream" to see if it works?

Or you could use the tRestClient component, with PUT method and add the content type to “text/csv” in the header( tRestClient>advanced settings).

Best regards

Sabrina

Edith1
Creator
Creator
Author

Hi @Sabrina,

 

Thanks for the response. I did try both ways and neither worked.

 

tFileFetch errored on "File is not a normal file" when I changed the content-type as "application/octet-stream". I then removed ";type=text/csv " from the end of the file path and it errored on "Method failed: HTTP/1.1 422 Unprocessable Content". That's because it requires that type at the end of the file path.

 

tRESTClient doesn't run with that header in advanced settings. It errors on "Syntax error on token "Invalid Character", delete this token".

0695b00000sknGuAAI.jpg

Anonymous
Not applicable