File Download in MVC

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
SteveCap
Posts: 329
Joined: August 26th, 2021, 9:18 am
Contact:

File Download in MVC

Unread post by SteveCap »

Create a controller
Controller.png
Controller.png (6.27 KiB) Viewed 5119 times
Controller.png
Controller.png (6.27 KiB) Viewed 5119 times
In the Assistant tab set up what ever _ViewFields you will pass in to determine the file path.
ViewFields.png
ViewFields.png (6.13 KiB) Viewed 5119 times
ViewFields.png
ViewFields.png (6.13 KiB) Viewed 5119 times
Then drag in the Stream File service from the MVC Workshop.
StreamFile.png
StreamFile.png (23.65 KiB) Viewed 5119 times
StreamFile.png
StreamFile.png (23.65 KiB) Viewed 5119 times
This service takes in a FilePath and Location.
StreamFileService.png
StreamFileService.png (23.18 KiB) Viewed 5119 times
StreamFileService.png
StreamFileService.png (23.18 KiB) Viewed 5119 times
FilePath is the relative path that can be found on the Static Files page.
Location is the Save To on the Static Files page.
DevMenu.png
DevMenu.png (21.84 KiB) Viewed 5119 times
DevMenu.png
DevMenu.png (21.84 KiB) Viewed 5119 times
StaticFiles.png
StaticFiles.png (26.12 KiB) Viewed 5119 times
StaticFiles.png
StaticFiles.png (26.12 KiB) Viewed 5119 times
word count: 160

Tags:
Post Reply