Try setting the maxAllowedContentLength in your web.config
On Mon, Nov 10, 2014 at 2:44 AM, John Blayter jblay...@gmail.com wrote:
Yes there is a mismatch on the Content-Length variable. I tried setting it
manually without any luck.
cfset variables.temporaryFilePath =
I am doing a server migration to IIS 8.5 and CF10 and having some issues
delivering PDF files. I tried the code using the built in web server and it
works without issue so I know the issue is in IIS somewhere. Basically what
happens is it truncates the PDF file to the first 749 bytes. I have
I would check the response headers for any hints, you may be getting a
mismatch with the expected content length.
Also, take a look at this setting in IIS and see if disabling it helps:
http://screencast.com/t/H03SiWuabri
If so, then you may just need to tweak the value.
On Sun, Nov 9, 2014 at
Yes there is a mismatch on the Content-Length variable. I tried setting it
manually without any luck.
cfset variables.temporaryFilePath = C:\inetpub\wwwroot\MyPDF.pdf
cfheader name=Content-Length
value=#getFileInfo(variables.temporaryFilePath).size#/
cfheader name=X-Content-Length
Try this instead of that.
cfcontent
type = text/html
file = C:\CFusion\wwwroot\myapps\cfcontent_message.htm
deleteFile = No
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/113032480415921517411
On Mon, Nov 10, 2014 at 1:44 PM, John
I could use some brainstorming help please to sort out this issue. A disclaimer
is I'm attempting to get our sys admins to hook up the apache sendfile into iis
6.x, however the timeline might not help me here.
We have two racks with a CF 8.x app server, file server, db server. They all
run on
I got curious about this functionality from a question I saw on another
forum.
How could one download multiple files within one response to a single
request. At first I thought that this was not possible since I have
never experienced it. But a quick Google search returned this blog post
This is possible in ColdFusion, but I had to dip down into the Java
HTTPServletResponse object to accomplish it. The kicker is, it only
appears to work in FireFox. I'll write up a blog post on it tonight.
~Brad
Original Message
Subject: Multi-part server push file download
To: CF-Talk
Subject: Re: File download not working
Did you recently turn off caching in IE, or do you prevent
caching in the page higher up (with no-cache headers etc)?
On Fri, Mar 14, 2008 at 6:01 AM, Dave
[EMAIL PROTECTED] wrote:
I'd seen the content-description in a few examples
I'm trying to enable a user to download a user information file. The file
is generated on a different server and is supposed to be offered up to the
user to save. I had it working before, but now it's not. I have looked all
over the web and have seen and tried various adaptations to the code I
Dave wrote:
...cannot download DownloadUserInfo.cfm...site is either unavailable or
cannot be found
cfset myFile = #fromdir# txtfiles.aes
cfheader name=Content-Disposition
value=attachment:filename=txtfiles.aes
cfheader name=Content-Description value=User Info File
cfcontent
not IE7.
-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2008 3:43 PM
To: CF-Talk
Subject: Re: File download not working
Dave wrote:
...cannot download DownloadUserInfo.cfm...site is either
unavailable
or cannot be found
Did you recently turn off caching in IE, or do you prevent caching in
the page higher up (with no-cache headers etc)?
On Fri, Mar 14, 2008 at 6:01 AM, Dave [EMAIL PROTECTED] wrote:
I'd seen the content-description in a few examples figured I'd give it a
try. I've also see the attachment
Hi, All:
I have a simple a href=myfile.pdf in a cfm file. It works on my
local machine but won't work on the server(Windows 2003, with IIS 6). I
got this message that many of you probably have seen before.
==
Internet Explorer cannot download my file from
/
-Original Message-
From: Nathan Chen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 6:00 PM
To: CF-Talk
Subject: file download in cfm file
Hi, All:
I have a simple a href=myfile.pdf in a cfm file. It works on my
local machine but won't work on the server(Windows 2003, with IIS 6
It works on my
local machine but won't work on the server(Windows 2003, with IIS 6)
Make sure your IIS is configurated to handle .pdf files.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any
If you're on an intranet, could you write the file to a common mapped drive
instead of downloading it at all?
-Original Message-
From: OÄuz Demirkapı [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 11:51 AM
To: CF-Talk
Subject: Forcing a default directory on file download
Hi
You could probably do it with a signed activeX contol... but... eww!
Rick
~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 MX7 integration create powerful cross-platform RIAs
?
-Original Message-
From: OÄuz Demirkapı [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 11:51 AM
To: CF-Talk
Subject: Forcing a default directory on file download
Hi
I have a dummy client request that I wonder if there is a solution.
We have a data file that we are exporting
different agents who does not know this directory in mind.
When I prompt file download they want to see this specific directory as
default save location.
I said this is technically not possible, but before closing this
request, I just want to be sure by asking here.
Can we force to save
complicated for the client and they want to save
this file direct into this specific directory. Ok they can select this
directory and save file but they want to do this via application because
they have different agents who does not know this directory in mind.
When I prompt file download they want
Any idea?
Not possible and they really do not WANT this because then some of us
developers could start delivering devastating virus packages directly to
critical directories.
On the off chance this in an intranet application where these client computers
may share a network domain with the
Thanks for replies!
What about setting default save directory on file download? If there
would be a way of doing this, it would not be a security issue.
Ian Skinner wrote:
Any idea?
Not possible and they really do not WANT this because then some of us
developers could start delivering
Thanks for replies!
What about setting default save directory on file download? If there
would be a way of doing this, it would not be a security issue.
Actually yes - yes it is a security issue. Because many users are dumb and
many hackers are very smart and can easily trick users to do
Hi All,
I am soon going to be creating a file download system for a web site and
before I start coding I wanted to see if any of you had any ideas on the
best way to handle this problem.
Users of the site are going to be able to select a number of images that
they wish to download
I don't think you are going to be able to find a CF based soltuion for the
download manager.
I have seen some executable soultions for what you are proposing, in Java or
different flavors of C, but these programs need to be rrunning on the end
users computer for them to work. Since CF is a server
tel: (203)879-2844
http://www.uxbinternet.com
http://dennis.uxb.net
-Original Message-
From: Jordan Michaels [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 24, 2004 6:43 PM
To: CF-Talk
Subject: Re: Simultaneous File download limiting system
If serv-u can't, Pureftpd can do this:
http
Wolcott, CT 06716 tel: (203)879-2844
http://www.uxbinternet.com
http://dennis.uxb.net
-Original Message-
From: Jordan Michaels [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 24, 2004 6:43 PM
To: CF-Talk
Subject: Re: Simultaneous File download limiting system
If serv-u can't
Hi Dennis,
Hahaha. That's quite alright. Windows has the ability to be useful
sometimes.
The point is, I doubt you're the only one who ever wanted that kind of
functionality in an FTP server. If serv-u won't do it, then there are
almost certainly other FTP servers out there that can. No need
I doubt you're the only one who ever wanted that kind of
functionality in an FTP server.
Actually Serv-U will do it and I have used in on many occasion however what
I am trying to do is have it fail gracefully.
When someone clicks the link to download a file we use a URL of
Hi,
We are attempting to create a file download system that will limit the user
to two simultaneous file transfers.We have a project where we have a file
browser web page in the web site that reads from a database and when the
user wishes to download a file they click the icon and we direct them
love it.
Hope this helps,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Dennis Powers wrote:
Hi,
We are attempting to create a file download system that will limit the
user
to two simultaneous file transfers.We have a project where we have a
file
browser web page in the web
Is there any way to increment a counter when a download has completed (the
download logic is using CFCONTENT).
How would it be done?I have access to file size vars from a database.
Thanks, Mark
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
I'm trying to make a mac download an XML file that is dynamically
created. I can get it to work on a PC but a Mac just opens the file in
the browser. This is the CF that I'm using. Any ideas on what I need to
do to make this thing work?
cfheader name=Content-Disposition value=attached;
This is all to do with the content type. If the any browser recognises
the type as something it can display, it will. Your Mac browser in this
instance knows about XML so it is displaying it inline I'm not sure
what you can do to stop that other than change the content-type to
something that
I'm trying to make a mac download an XML file that is dynamically
created. I can get it to work on a PC but a Mac just opens the file in
the browser. This is the CF that I'm using. Any ideas on what I need to
do to make this thing work?
cfheader name=Content-Disposition value=attached;
Patricia G. L. Hall wrote:
Try this:
cfheader name=Content-Disposition value=attachment;
filename=file.xml
cfcontent file=[pathtofile]\sartxfercy.txt type=application/unknown
I don't know for sure if you need the file=[pathtofile]I just know
that in my application, which works on the
You need to change 'attached' to 'attachment' for it to work, like:
cfheader name=Content-Disposition value=attachment; filename=file.xml
cfcontent type=application/xml
I'm doing the same with Excel and Word docs, works beautifully on Mac.
Jack
I'm trying to make a mac download an XML file
I think that is where the file=[pathtofile]\sartxfercy.txt attribute
comes in.You didn't have it in your original code, did you put it in
this go round?
My application does exactly what you want.Forces a download of a text
file on both Mac and PC and names the file as I have it spelled out in the
I think that is where the file=[pathtofile]\sartxfercy.txt
attribute comes in.
This part is only applicable if you're returning a file from the filesystem
using CFCONTENT. If you're returning text you've just generated with CF, you
would omit the FILE attribute.
Dave Watts, CTO, Fig Leaf
Well I couldn't get it to work the way I wanted it too. I decided to
make them Save link as instead of forcing the download.
Dave Watts wrote:
I think that is where the file=[pathtofile]\sartxfercy.txt
attribute comes in.
This part is only applicable if you're returning a file from the
Hey everyone,
Very soon I'll need to set up a system that will let users download files. The users will need to be logged in, so I'll be checking for a username and password before I let them download the file. The part I'm not sure about is protecting the file itself. I want the file to be
The part I'm not sure about is protecting the file itself. I want the
file to be protected so no one can brows to it by http.
Jeff,
A bit of pseudo code for you.
cfif loggedin IS true
cfcontent reset=yes
cfheader name=Content-Disposition
redirected to download.cfm where download of his choice starts automatically.
TK
- Original Message -
From: Jeff Fongemie
To: CF-Talk
Sent: Sunday, November 16, 2003 11:33 AM
Subject: Ideas needed! Password protect a file download.
Hey everyone,
Very soon I'll need to set up a system
: Jeff Fongemie [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 16, 2003 11:34 AM
To: CF-Talk
Subject: Ideas needed! Password protect a file download.
Hey everyone,
Very soon I'll need to set up a system that will let users download
files. The users will need to be logged in, so I'll be checking
: Ideas needed! Password protect a file download.
The part I'm not sure about is protecting the file itself. I want the
file to be protected so no one can brows to it by http.
Jeff,
A bit of pseudo code for you.
cfif loggedin IS true
cfcontent reset=yes
cfheader name=Content-Disposition
value
You guys are fantastic. I just talked to the crummy isp for the site and it looks like it may take some work to get them to allow me to use the cfcontent tag, but they are considering it. Looks like it is the way to go.
I'll report back if I can get them to switch it back on.
Thanks!!!
[Todays
Thats why I love hostmysite.com for my CF hosting needs.. They allow the
tags!
_
From: Jeff Fongemie [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 16, 2003 5:00 PM
To: CF-Talk
Subject: Re:Ideas needed! Password protect a file download.
You guys are fantastic. I just talked to the crummy
Hi All,
I have a script (listed below) that when run allows a file to be downloaded
to a client machine. In IE 5+ it works great. However, in NS 6-7 the file
extension .cfm wants to append itself to the end of the file (in this case a
.pdf). Any way to stop this appending?
===
snip
--=_6494909==.ALT
Content-Type: text/plain; charset=us-ascii; format=flowed
I just ran across a bug with NS7 where it appends the file ext of the
template to the end of the filename to be downloaded. So if you have a
download.cfm template like
cfheader
-
Vancouver Island ColdFusion Users Group
Founder Director
www.cfug-vancouverisland.com
- Original Message -
From: Phil Cruz [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, December 16, 2002 4:05 PM
Subject: file download bug
This is an area I have not looked at in detail before so I am looking
for some pointers on the best way to proceed. - I am a CF dabbler not a
code jockey like you guys :-)
I make a selection on a page which stores the path to a file in a
variable (#PathToFile#). I now want to download that file
There has been quite a lot of discussion about how to make file download work properly
in various browsers.
Thomas Chiverton came up with a work-around for MSIE 5.x Win bugs that wouldn't
pick up the correct file name. Others had fixes for other browsers.
Thomas' solution used a popup window
I am trying to offer a link on a website, for ALL kinds of file types. I
want to force file download even for files that are an understood MIME type,
i.e. GIF, JPG, DOC, XLS, etc. I do not want this to open in the browser.
Can anyone help me?
Thanks,
Vance Duke
Sr. Cold Fusion Developer
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 11:56 AM
To: CF-Talk
Subject: Force File Download
I am trying to offer a link on a website, for ALL kinds of file types. I
want to force file download even for files that are an understood MIME type,
i.e. GIF, JPG, DOC, XLS, etc. I do not want
, April 17, 2001 12:59 PM
To: CF-Talk
Subject: RE: Force File Download
Vance, what web server are you using? Some will enable a quasi-ftp type
facility if the directory(s) have no Index/Default page in them.
Kind Regards - Mike Brunt
Macromedia Consulting
Tel 562.243.6255
Fax 401.696.4335
http
L PROTECTED]]
Sent: Tuesday, April 17, 2001 11:56 AM
To: CF-Talk
Subject: Force File Download
I am trying to offer a link on a website, for ALL kinds of file types. I
want to force file download even for files that are an understood MIME type,
i.e. GIF, JPG, DOC, XLS, etc. I do not want this t
I am trying to give the user access to download files that are located on a
different hard drive than the webserver directory. I have used cfdirectory
in the past when files were located in the home web server directory. The
cffile would list all files and the user can click on file name which is
as opposed to download.cfm)
download.cfm:
cfcontent type="unknown" file="c:\Directory\#url.file#" deletefile="No"
- Original Message -
From: "W. Shannon Carr" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Friday, April 13, 2001 10:
quot;unknown" file="c:\Directory\#url.file#" deletefile="No"
- Original Message -
From: "W. Shannon Carr" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Friday, April 13, 2001 10:16 AM
Subject: File Download
I am trying to give the user
Thank you for your help. I wasn't aware of the cfcontent tag but will be
sure to add a new snippet.
Thanks again,
Shannon
- Original Message -
From: "Tim Painter" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Friday, April 13, 2001 10:57 AM
Subjec
I use CFcontent all the time and haven't had any
problems for a long time. Recently I have been
attempting to institute it as part of a fusebox site
with frames to download some hidden files. When a
user clicks the link that triggers the CFCONTENT
download, for some reason, two files must be
How do you get a download interface to come up?
Like when i goto a web site and buy software. This interface pops up and
asks me where i want to save the file...
I have a feeling it is a really basic HTML or java answer.
Thanks!
~ Paid Sponsorship ~
Get Your Own
line)
www.figleaf.com
-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 10:44 AM
To: CF-Talk
Subject: File Download
How do you get a download interface to come up?
Like when i goto a web site and buy software. This interface pops up
Subject: File Download
How do you get a download interface to come up?
Like when i goto a web site and buy software. This interface pops up and
asks me where i want to save the file...
I have a feeling it is a really basic HTML or java answer.
Thanks!
~ Paid Sponsorship
]
http://www.crescotech.com
-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 10:44 AM
To: CF-Talk
Subject: File Download
How do you get a download interface to come up?
Like when i goto a web site and buy software. This interface pops up
Hi.
How to download a file form the server ,is it possible by cfcontent tag.
please help me..
vinu
This e-mail has been sent to you courtesy of OperaMail, as a free service from
Opera Software, makers of the award-winning
Try thed cf_download tag from the alliare developer connection.
- Original Message -
From: "Vinuthomas" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Tuesday, September 26, 2000 05:31
Subject: File download
Hi.
How to download a file form the se
MK.PDF"
At 7:23 PM -0700 5/13/2000, S.E.Fling wrote:
Hi,
Thanks to the great thread on "CFCONTENT and File Download", I was able to create a
download page for 2page.exe, a self-extracting winzip file (contains 12 Microsoft
word documents).
However, when the "Save As..&
This works for me:
CFHEADER NAME="Content-Disposition" value="attachment; filename=RB2000MK.PDF"
CFCONTENT TYPE="application/pdf"
FILE="d:\itool\sites\sgcpubs\www\mediakits\RB2000MK.PDF"
At 7:23 PM -0700 5/13/2000, S.E.Fling wrote:
Hi,
Thanks to
Hi,
Thanks to the great thread on "CFCONTENT and File Download", I was able to create a
download page for 2page.exe, a self-extracting winzip file (contains 12 Microsoft word
documents).
However, when the "Save As.." box comes up, instead of "2page.exe" as
I am trying to use CFContent to serve up files for downloading.
I have various of file types ranging from TXT, XLS, EXE, ZIP, and DOC files.
EXE and ZIP files are working correctly.
However if I use TXT, XLS, and DOC files, they will be opened in the browser
or I get a message of:
Guy,
Move the CAD files out of the web folder and use CFCONTENT to push the cad
files. The CFCONTENT script will be programmed to accept and validate an
encrypted phrase passed by the calling file (applet).
Now here is the worse part. The key used to validate and encode (CFENCRYPT)
the phrase
Building an application that uses a cad file viewer that is a java applet.
The viewer loads a cad file from the document root on the web server and
display it in a browser.
The problem I have is that a user can view the source for the web page, get
the URL to the cad file and download the cad
Corporation
[EMAIL PROTECTED]
www.workcover.com
ph: +61 8 82332548
fax: +61 8 82332000
mob: 0418 800 287
++
-Original Message-
From: Guy Walker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 13 April 2000 2:26 PM
To: [EMAIL PROTECTED]
Subject: Preventing file download.
Building
75 matches
Mail list logo