Open Uploaded File in Browser

I am currently making a form application using perspective and I would like the user to be able to click the links to the files and have the file open up within the browser. I was wondering if it would be possible to save the files into a folder within the server and use system.perspective.navigate to access a file when a link is clicked.


Currently, how I'm managing the files is saving the bytes and file names of the uploaded files to a database.

An easy, free option would be Phil Turmel's 'Blob Server' module:

Another option that gives you more control would be the Webdev module:
https://docs.inductiveautomation.com/display/DOC81/Web+Dev#WebDev-PythonResources

3 Likes

Thank you for the quick response and recommendation. I took some time to play around with the Blob Server module and it works for me.

2 Likes