wooey / Wooey

A Django app that creates automatic web UIs for Python scripts.
http://wooey.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.12k stars 182 forks source link

Returning files #221

Closed JoshGlue closed 6 years ago

JoshGlue commented 6 years ago

On the demo server there are pictures shown as output. as seen here: https://wooey.herokuapp.com/jobs/8733/ . I can't find in the documentation how to return files that can be viewed on the job page.

How do you return files from a script?

Chris7 commented 6 years ago

When a script finishes, all output is evaluated against some known file types: https://github.com/wooey/Wooey/blob/master/wooey/backend/utils.py#L506

If it doesn't match there, it doesn't show. There is an open issue to develop a mechanism for users to display/render file types of their choosing here, https://github.com/wooey/Wooey/issues/159, but I haven't had time to commit to it and nobody has offered to step up so far :).

Chris7 commented 6 years ago

I assume this is answered so closing. Let me know if otherwise.