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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sbumeshqlik
Contributor III
Contributor III

Qlikview RestAPI post/upload a File

Hello Experts,

Really appreciate for your  expert advise, 

We are using qlikview rest api  for our restAPI project, I need to upload the file using post. 

How do I take care of -F (highlighted in pink below)  in rest api gui, I was able to figure out how to enter  the header option  (-H)  but not  -F.

 Enclosed below CURL command for your reference.

srsbumeshqlik_2-1628951152042.png

 

curl -X POST "https://dev.myRestserver/v1/api/uploadProjectBudgetFile"             
             -H "Authorization: Bearer serverBearerCode1234567891"
            -H "Content-Type: multipart/form-data"
            -F    "FileName=XXX_Input_File.csv"
          -F     File=@XXX_Input_File.csv;
           type=application/vnd.ms-excel

Thanking you, in advance,

Regards,

Umesh

 

 

 

1 Solution

Accepted Solutions
NadiaB
Support
Support

Hi @sbumeshqlik 

Are those -F parameters? if so those should go under Query Parameters.

Kind Regards.

 

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm

View solution in original post

1 Reply
NadiaB
Support
Support

Hi @sbumeshqlik 

Are those -F parameters? if so those should go under Query Parameters.

Kind Regards.

 

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm