• Web Server Rendering text

    From poindexter FORTRAN@VERT/REALITY to All on Sunday, September 22, 2019 06:59:00
    I started playing with my new (to me) working ecwebv4 installation,
    and was wondering about how the files section behaves.

    If I click on a test document, I'm prompted to download the file.
    Instead, I'd like to render it in the browser window. is this a
    function of the web server or the browser?



    ... Cluster analysis
    --- MultiMail/XT v0.52
    Synchronet realitycheckBBS -- http://realitycheckBBS.org
  • From echicken@VERT/ECBBS to poindexter FORTRAN on Sunday, September 22, 2019 11:19:24
    Re: Web Server Rendering text
    By: poindexter FORTRAN to All on Sun Sep 22 2019 06:59:00

    If I click on a test document, I'm prompted to download the file.
    Instead, I'd like to render it in the browser window. is this a
    function of the web server or the browser?

    It's likely down to some header values set by my script on the server. It has no way of knowing which types of files are displayable in a browser, so right now it just tells the browser to save the contents as a file every time. There are better ways of dealing with this, but I'd have to spend some time implementing something.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    Synchronet electronic chicken bbs - bbs.electronicchicken.com
  • From poindexter FORTRAN@VERT/REALITY to echicken on Sunday, September 22, 2019 11:03:47
    Re: Web Server Rendering text
    By: echicken to poindexter FORTRAN on Sun Sep 22 2019 11:19 am

    It's likely down to some header values set by my script on the server. It has no way of knowing which types of files are displayable in a browser, so

    Sorry, I meant to type "text" document.

    ---
    Synchronet realitycheckBBS -- http://realitycheckBBS.org
  • From Digital Man@VERT to poindexter FORTRAN on Sunday, September 22, 2019 12:23:34
    Re: Web Server Rendering text
    By: poindexter FORTRAN to All on Sun Sep 22 2019 06:59 am

    I started playing with my new (to me) working ecwebv4 installation,
    and was wondering about how the files section behaves.

    If I click on a test document, I'm prompted to download the file.
    Instead, I'd like to render it in the browser window. is this a
    function of the web server or the browser?

    The browser. https://sritutorials.com/chrome-and-firefox-developers-aim-to-remove-support-for-ftp/

    digital man

    This Is Spinal Tap quote #46:
    "Not an Exit" - we don't want an exit. Well that's true.
    Norco, CA WX: 87.7F, 21.0% humidity, 6 mph NE wind, 0.00 inches rain/24hrs

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net