I'd like to disagree with the "outside of htdocs...you cannot expose it to the web" statement.
It just takes a directive in the Apache config, and it can be a naming that is hidden from the url
so you are not exposing your true dir structure. Then it's a matter of the url pointing to
the .pdf instead of a .html and your browser will know what to do. Have been serving .pdf
(or .csv or .xls) this way to the web since 2000 in a similar tool - Websmart.
Jim Franz

----- Original Message ----- From: "Schadd Gray" <list@xxxxxxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)" <web400@xxxxxxxxxxxx>
Sent: Monday, February 25, 2013 8:40 AM
Subject: Re: [WEB400] Link to a PDF on IFS


I do not know much about LANSA, but in other web languages, if the PDF file
on the IFS is outside of the web directory (/www/mysite/htdocs) you cannot
expose it to the web. You have two choices. 1) Place the PDF in the web
directory, but this allows every web user to access this PDF if they know
the path (not very secure). 2) Write a program to read the file from the
IFS and pipe it to the browser. You would need to change the content type
to "application/pdf".

Thank you,
Schadd Gray
Damon Technologies, Inc.
www.damontech.com
-----Original Message----- From: Jack Tucky
Sent: Sunday, February 24, 2013 7:37 PM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Link to a PDF on IFS

I'm using LANSA on Iseries to run a website. The user can press a button, I
call a CLP and create a PDF and email it to the end user.



I'd like to change it to display the PDF in the browser. The PDF is on the
IFS. I know the path and file name of the PDF.



What do I have to do to change the webserver show files from a specific
directory on the IFS?



Thanks, Jack.





--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.