Why the activity of downloading files did not work when it was be used in a microflow called by restful?

0
    When I call the restful by the address 'http://localhost:8042/rest/teamcenterrapidstart/v1/RapidStart/Download?session=226TCSession&object=irjVRo4w4RmrZC&servername=TC_BBA_SANDBOX', the file was opened in browser, not  download directly.          
asked
3 answers
2

This sounds more like browser behaviour than a problem with your Mendix application. Your browser is probably set to try to open files automatically.

 

If you are using Google Chrome, go to Settings > Downloads (sidebar) > Click on "Clear" on "Open certain file types automatically after downloading" to disable this.

 

The Download File action doesn't work from RESTful services, returning the FileDocument from the microflow causes the download to happen. You may want to try adding a MIME type that your browser doesn't know how to handle in the microflow. Some details on how to do this can be found in the Mendix documentation.

https://docs.mendix.com/refguide/send-receive-files-rest/#set-mime-type

 

More information on the Chrome download settings can be found on the Chrome support forum.

https://support.google.com/chrome/thread/203823579/google-chrome-question?hl=en

 

Good luck!

answered
0

 

1、Java Actionimage.png

 

2、Mircoflow

image.png

 

 

 

 

 

 

answered
0

1 Java Action 

 

image.png

 

2 Microflow

image.png

 

answered