Re: Open PDF

2006-02-14 Thread Ryan Guill
Sounds like a browser setting to me.  It would do that in my browser
because I have set all pdfs to download and then I can open them in
the standalone acrobat reader.

On 2/14/06, Brian Peddle [EMAIL PROTECTED] wrote:
 Using CF 7 and had written some code to open files that were uploads.  Txt,
 Doc, PDF etc.  This all had been working, only difference is we moved code
 onto new servers when we moved hosting.

 The process was.

 Display Page will all documents.
 Click on link to display document
 This would open a new windows and display the doc.

 That window would run this and open the file, maybe over kill on header
 stuff I know, I have added and removed stuff with no success.


 cfheader name=Content-Length value=#documentSelect.filesize#
 cfheader name=Content-Type value=#documentSelect.mimeType#
 cfheader name=Content-Location
 value=#URLEncodedFormat(documentSelect.savedName)#

 cfheader name=Content-Disposition value=inline;
 filename=#documentSelect.name#.#documentSelect.fileType#

 cfheader name=Expires value=#Now()#

 cfcontent type=#documentSelect.mimeType#
 file=#destinationFolder##documentSelect.savedName#

 Now the window flashes open for PDF's and then closes and prompts to
 download the PDF.

 Any thoughts?



 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232255
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Open PDF

2006-02-14 Thread Brian Peddle
Earlier today I download the coldfusion journal right inside the browser, no
issues.

-Original Message-
From: Ryan Guill [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 4:23 PM
To: CF-Talk
Subject: Re: Open PDF

Sounds like a browser setting to me.  It would do that in my browser
because I have set all pdfs to download and then I can open them in
the standalone acrobat reader.

On 2/14/06, Brian Peddle [EMAIL PROTECTED] wrote:
 Using CF 7 and had written some code to open files that were uploads.
Txt,
 Doc, PDF etc.  This all had been working, only difference is we moved code
 onto new servers when we moved hosting.

 The process was.

 Display Page will all documents.
 Click on link to display document
 This would open a new windows and display the doc.

 That window would run this and open the file, maybe over kill on header
 stuff I know, I have added and removed stuff with no success.


 cfheader name=Content-Length value=#documentSelect.filesize#
 cfheader name=Content-Type value=#documentSelect.mimeType#
 cfheader name=Content-Location
 value=#URLEncodedFormat(documentSelect.savedName)#

 cfheader name=Content-Disposition value=inline;
 filename=#documentSelect.name#.#documentSelect.fileType#

 cfheader name=Expires value=#Now()#

 cfcontent type=#documentSelect.mimeType#
 file=#destinationFolder##documentSelect.savedName#

 Now the window flashes open for PDF's and then closes and prompts to
 download the PDF.

 Any thoughts?



 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232257
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Open PDF

2006-02-14 Thread Brian Peddle
Found the issue and not sure why its happening.  When someone uploads file I
capture mime-type, its saving as image/pdf instead of application/pdf.

Is there a server setting for this?

-Original Message-
From: Brian Peddle [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 4:19 PM
To: CF-Talk
Subject: Open PDF

Using CF 7 and had written some code to open files that were uploads.  Txt,
Doc, PDF etc.  This all had been working, only difference is we moved code
onto new servers when we moved hosting.

The process was.

Display Page will all documents.
Click on link to display document
This would open a new windows and display the doc.

That window would run this and open the file, maybe over kill on header
stuff I know, I have added and removed stuff with no success.


cfheader name=Content-Length value=#documentSelect.filesize#
cfheader name=Content-Type value=#documentSelect.mimeType#
cfheader name=Content-Location
value=#URLEncodedFormat(documentSelect.savedName)# 

cfheader name=Content-Disposition value=inline;
filename=#documentSelect.name#.#documentSelect.fileType#

cfheader name=Expires value=#Now()# 

cfcontent type=#documentSelect.mimeType#
file=#destinationFolder##documentSelect.savedName#

Now the window flashes open for PDF's and then closes and prompts to
download the PDF.

Any thoughts?





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232259
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Open PDF

2006-02-14 Thread Andy Matthews
No...it's got to be a server setting...

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Ryan Guill [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 14, 2006 3:23 PM
To: CF-Talk
Subject: Re: Open PDF


Sounds like a browser setting to me.  It would do that in my browser
because I have set all pdfs to download and then I can open them in
the standalone acrobat reader.

On 2/14/06, Brian Peddle [EMAIL PROTECTED] wrote:
 Using CF 7 and had written some code to open files that were uploads.
Txt,
 Doc, PDF etc.  This all had been working, only difference is we moved code
 onto new servers when we moved hosting.

 The process was.

 Display Page will all documents.
 Click on link to display document
 This would open a new windows and display the doc.

 That window would run this and open the file, maybe over kill on header
 stuff I know, I have added and removed stuff with no success.


 cfheader name=Content-Length value=#documentSelect.filesize#
 cfheader name=Content-Type value=#documentSelect.mimeType#
 cfheader name=Content-Location
 value=#URLEncodedFormat(documentSelect.savedName)#

 cfheader name=Content-Disposition value=inline;
 filename=#documentSelect.name#.#documentSelect.fileType#

 cfheader name=Expires value=#Now()#

 cfcontent type=#documentSelect.mimeType#
 file=#destinationFolder##documentSelect.savedName#

 Now the window flashes open for PDF's and then closes and prompts to
 download the PDF.

 Any thoughts?







~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232260
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Open PDF

2006-02-14 Thread Ryan Guill
What do you do to capture the mime-type?

On 2/14/06, Brian Peddle [EMAIL PROTECTED] wrote:
 Found the issue and not sure why its happening.  When someone uploads file I
 capture mime-type, its saving as image/pdf instead of application/pdf.

 Is there a server setting for this?

 -Original Message-
 From: Brian Peddle [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 14, 2006 4:19 PM
 To: CF-Talk
 Subject: Open PDF

 Using CF 7 and had written some code to open files that were uploads.  Txt,
 Doc, PDF etc.  This all had been working, only difference is we moved code
 onto new servers when we moved hosting.

 The process was.

 Display Page will all documents.
 Click on link to display document
 This would open a new windows and display the doc.

 That window would run this and open the file, maybe over kill on header
 stuff I know, I have added and removed stuff with no success.


 cfheader name=Content-Length value=#documentSelect.filesize#
 cfheader name=Content-Type value=#documentSelect.mimeType#
 cfheader name=Content-Location
 value=#URLEncodedFormat(documentSelect.savedName)#

 cfheader name=Content-Disposition value=inline;
 filename=#documentSelect.name#.#documentSelect.fileType#

 cfheader name=Expires value=#Now()#

 cfcontent type=#documentSelect.mimeType#
 file=#destinationFolder##documentSelect.savedName#

 Now the window flashes open for PDF's and then closes and prompts to
 download the PDF.

 Any thoughts?





 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232263
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Open PDF

2006-02-14 Thread Brian Peddle
After the cfupload I get the mimetype from the file uploaded.

I actually changed to with some logic.  It opens in Firefox but in IE I get
a blank screen now.  Also it is not on an SSL page.

-Original Message-
From: Jim Wright [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 4:54 PM
To: CF-Talk
Subject: Re: Open PDF

Where are you getting that #documentSelect.mimeType# variable?  Is it
definitely passing the right mime type?

On 2/14/06, Brian Peddle [EMAIL PROTECTED] wrote:
 Using CF 7 and had written some code to open files that were uploads.
Txt,
 Doc, PDF etc.  This all had been working, only difference is we moved code
 onto new servers when we moved hosting.

 The process was.

 Display Page will all documents.
 Click on link to display document
 This would open a new windows and display the doc.

 That window would run this and open the file, maybe over kill on header
 stuff I know, I have added and removed stuff with no success.


 cfheader name=Content-Length value=#documentSelect.filesize#
 cfheader name=Content-Type value=#documentSelect.mimeType#
 cfheader name=Content-Location
 value=#URLEncodedFormat(documentSelect.savedName)#

 cfheader name=Content-Disposition value=inline;
 filename=#documentSelect.name#.#documentSelect.fileType#

 cfheader name=Expires value=#Now()#

 cfcontent type=#documentSelect.mimeType#
 file=#destinationFolder##documentSelect.savedName#

 Now the window flashes open for PDF's and then closes and prompts to
 download the PDF.

 Any thoughts?



 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232270
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Open PDF - SOLVED

2006-02-14 Thread Brian Peddle
The PDF would open in firefox but it would not open in IE.  It would work in
both on my development box but would not on Production.

I had HTTP Compression turned on in Production and not locally.  Once I
turned of HTTP Compression it worked.

If you are using IIS 6 and have Compression on, simply turning off
compression didn't solve it.  I actually had to edit.

C:\WINDOWS\system32\inetsrv\metabase.xml and remove .cfm from the
HcScriptFileExtensions section.

For good measure I restarted IIS.

Now the PDF serves up as expected.

Now anyone know how I can get compression turned back on and make this work.
:)


-Original Message-
From: Brian Peddle [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 4:19 PM
To: CF-Talk
Subject: Open PDF

Using CF 7 and had written some code to open files that were uploads.  Txt,
Doc, PDF etc.  This all had been working, only difference is we moved code
onto new servers when we moved hosting.

The process was.

Display Page will all documents.
Click on link to display document
This would open a new windows and display the doc.

That window would run this and open the file, maybe over kill on header
stuff I know, I have added and removed stuff with no success.


cfheader name=Content-Length value=#documentSelect.filesize#
cfheader name=Content-Type value=#documentSelect.mimeType#
cfheader name=Content-Location
value=#URLEncodedFormat(documentSelect.savedName)# 

cfheader name=Content-Disposition value=inline;
filename=#documentSelect.name#.#documentSelect.fileType#

cfheader name=Expires value=#Now()# 

cfcontent type=#documentSelect.mimeType#
file=#destinationFolder##documentSelect.savedName#

Now the window flashes open for PDF's and then closes and prompts to
download the PDF.

Any thoughts?





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232297
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54