Now I am trying to find a way upload file when user click another button.
Could you give me the way?
You could always import the service on the file repository to which you are uploading manually in the services tab like:
Then bind the button on-click event to this service:
Hope this helps!
You wouldn't be able to use the File Upload widget and the method I described. The method I described would be an alternative. the File Upload widget has an upload button already on it.
Wait, the file upload widget has an event called "Upload Complete". If you trigger a service to save other information when this event fires, then you can do both while still using the OOTB file upload widget, which is way simpler than what I was suggesting.
In order to avoid the problem of Mashup users uploading files without registering required information, I want to find a way to upload files when I input and save information through specific button.
Is there a way to apply these scenarios?
In addition, the file can not be uploaded via load text. I would appreciate any more guidance. could you share these entities?
I don't think there is any other way to do it. You would have to copy the source code for the file upload widget and build something custom. See the ThingWorx Extension Development Guide for more info on building custom widgets