Showing results for 
Search instead for 
Did you mean: 

Upload file with LabVIEW webservices

Go to solution

Hi Community,


I running a PC based webservice and I'd like my users to be able to log in to the website (done), select the upload menu (done), select the file they want to upload (done), then using a POST method I need a routine which acutally uploads the file to the server (not done) all from their browser. I have found several links demonstrating how the client can upload a file from labview, but my clients dont have labview. All need to be done via their browser.


I have attached my solution how the server can send a file to the user. This part is working, but I need a file transfer to the opposite way as well.







0 Kudos
Message 1 of 7
Accepted by topic author 1984

Use 'read uploaded files info' from the Web Services palette. It will allow you to access files that that you upload from a html form in your web service. It will give you a temporary file path which you can then open/copy.

LabVIEW Champion, CLA, CLED, CTD
Message 2 of 7

Thanks mate, I never thought that its gonna be this easy! (can you check my response to the other webservice related question:



0 Kudos
Message 3 of 7

Hello all, I replicated the above VI.  I want the web service server to send a text file to the client.  The client side downloads the file but the file is empty.  Attached is the block diagram probing the text file showing there is data. Any help would be appreciated.



0 Kudos
Message 4 of 7

The problem is solved by going to web Service properties and changing the setting from Terminal to Stream.  See pic.Screen Shot 2018-01-18 at 7.57.51 PM.png

Message 5 of 7



I tried to upload multiple files using attached project but only last file is coming as output in uploaded files (at the "read uploaded files info" VI), even upload for all files are successful in temporary folder. 




Download All
0 Kudos
Message 6 of 7

I was having the same issue, and the only way I got it to work was to run the built exe as an administrator.  If I ran it directly from LabVIEW I get error: "-67032".  Note, I also added the error cluster to the terminals to make it easier to see the issue.

0 Kudos
Message 7 of 7