<div dir="ltr">Hi Louise,<div><br></div><div>The upload part can be managed by the launcher or the actual ParaViewWeb server (the later require additional args at startup). </div><div>That part was meant to be a proof of concept so we could create a form and let the user upload the dataset that he wanted to visualize with Visualizer either before or while Visualizer was running.</div><div><br></div><div>If you are using Apache, that means you will also have to forward /upload to the launcher like you did with /paraview.</div><div><br></div><div>On the other hand creating your own endpoint for uploading file, should not be too difficult either.</div><div><br></div><div>Here is the relevant part of the code that will register /upload if the configuration provide such thing:</div><div><br></div><div><a href="https://github.com/Kitware/VTK/blob/v7.1.1/Web/Python/vtk/web/launcher.py#L622-L627">https://github.com/Kitware/VTK/blob/v7.1.1/Web/Python/vtk/web/launcher.py#L622-L627</a><br></div><div><br></div><div>Seb</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 14, 2017 at 7:46 AM, <span dir="ltr"><<a href="mailto:louise.davies@stfc.ac.uk" target="_blank">louise.davies@stfc.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="m_6513999966490742798WordSection1">
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I was reading the docs for ParaViewWeb and Visualizer and I see they both mention a file upload server. Specifically, this section (<a href="https://kitware.github.io/paraviewweb/docs/python_launcher.html#Optional-Upload-Server" target="_blank">https://kitware.github.io/<wbr>paraviewweb/docs/python_<wbr>launcher.html#Optional-Upload-<wbr>Server</a>)
gives basic details of how it works.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">My question is that I can’t seem to see any evidence that this is working. My launcher config code specifies an “upload_dir” in the “configuration” section as detailed in the example launcher config file in the example but trying to send
a post request to the URL specified (“/upload” rather than “/visualizer” which I use to access the Visualizer app) just results in an Apache “request URL not found” error.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Am I interpreting the documentation incorrectly? Additionally, what is the functionality of the file upload server/what are its limitations? Could it allow for a user to upload a file and then modify that file in the Visualizer app? Or
am I better off implementing my own file upload server?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks in advance,<u></u><u></u></p>
<p class="MsoNormal">Louise<u></u><u></u></p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>