Skip to main content
1-Visitor
June 14, 2019
Solved

Problem Link FileUpload Widget

  • June 14, 2019
  • 1 reply
  • 2050 views

Hello,

 

I have a problem with "FileName" variable from "FileUpload" wiget. I am trying to connect this variable with a string variable from one thing, but the file name of user don´t show in the string variable. Do you know if "fileUpload" widget is working in Thingworx 8.4? Could you help me with that?

 

"RepositoryName" is showing correctly in "Repository" but "FileName" not.

 

Thank you in advance,

BR

 

Luis

 

Best answer by Rajesh_Sayana

Please write a service that accepts an input of type string. Inside the service assign the input to the "FileName" property of the thing. Return the same "FileName" as an output from the service and bind it to a label on your MashUp. 

Finally, bind the service to the "UploadComplete" option of the FileUpload widget. Your binding should look similar to the attached binding.  

Please find the attached service for your reference. 

 

Best regards,

Rajesh.

1 reply

5-Regular Member
June 14, 2019

Please write a service that accepts an input of type string. Inside the service assign the input to the "FileName" property of the thing. Return the same "FileName" as an output from the service and bind it to a label on your MashUp. 

Finally, bind the service to the "UploadComplete" option of the FileUpload widget. Your binding should look similar to the attached binding.  

Please find the attached service for your reference. 

 

Best regards,

Rajesh.

ljam1-VisitorAuthor
1-Visitor
June 17, 2019

 It worked.

 

Thank you Rajesh!