LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP POSTMultipart upload JSON file - error 363514

Hello, I need help figuring out how to translate clicking of a button "Restore configuration" in web browser to LabVIEW syntax. This is what source code looks like and what it looks like in Chrome - I need to use POST method with content type "multipart/form-data"

 

Screenshot 2024-02-06 121328.png

Screenshot 2024-01-31 100621.png

https://www.ni.com/docs/en-US/bundle/labview/page/uploading-files-using-web-services-real-time-windo...

 

I was following this tutorial by LabVIEW to upload that file, but it doesn't look like I got syntax correctly, I get error 363514, my code is attached. 

 

 

Screenshot 2024-02-06 122904.png

 

Any suggestions where to continue looking? I've tried changing the header by using Accept to match that of Chrome, but I keep getting the same error. I know that JSON file definitely has correct structure and I have not issues using LabVIEW to send GET commands to the web page to download a file, force log out, etc., I only struggle with implementing this multipost button. 

 

Many thanks

 

0 Kudos
Message 1 of 4
(1,227 Views)

I'm sorry I can't help but very interested. I have test station LabVIEW executables and one at a time each station started giving this error after previously working. Nothing I could do worked and I ended up writing a small c# app to do the post instead of LabVIEW.  The post vi is locked and the error message is useless! I am watching with interest here.

0 Kudos
Message 2 of 4
(1,202 Views)

For a similar file upload using POST Multipart, I did this,

santo_13_0-1707246185203.png

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 3 of 4
(1,191 Views)

Yes, the example written by NI I've referenced shows that if the form is written with regular HTML code, it would would work, but my button seems to be a function or a  class of AJAX library, so I need to apply some logic glue and this is what I can't figure out how to do.   

 

Screenshot 2024-02-07 170817.png

0 Kudos
Message 4 of 4
(1,135 Views)