Gemalto is now part of the Thales Group, find out more.

You are here

BGS2T multipart file upload POST | Thales IoT Developer Community

August 29, 2014 - 2:31am, 5959 views

We are struggling with setting the correct values for doing a multipart file upload post from the BGS2T. With curl its as simple as the following: curl -A "our_unique_user_agent_string" -F our_file=@our_local_file http://our_upload_url/ Looking at the backend that seems to set the content-type correctly as multipart/form-data. We can replicate this with the BGS2T by setting: hcUsrAgent = "our_unique_user_agent_string" hcProp = "Content-Type: multipart/form-data" But how do we set the our_file property for actually sending the data during the AT command? Any advice would be appreciated :)