cffile - ColdFusion tag for manipulating files on the server
Questions tagged [cffile]
96 questions
9
votes
2 answers
Upload multiple files with jquery and coldfusion cffile
Not really a question... Just wanted to post this somewhere because I couldnt find it elsewhere. Now that I've cobbled together a working demo I thought i would share. This works equally well on Coldfusion and Railo CFML servers.
The problem is that…

Koreys
- 117
- 1
- 7
7
votes
2 answers
Get a file from auto download url in coldfusion
I am trying to get a file from a auto download url using cfhttp.
I am using the following code:
In this case I have specified the file type as CSV so I am able to…

Abhishekh Gupta
- 6,206
- 4
- 18
- 46
7
votes
1 answer
Uploading a file with AJAX and CFFILE
I have a small form where I would like to upload a file to my CF Server. I have been able to make this work in the past by submitting my CFFORM via a traditional actionpage. However I would like to upload the file using AJAX instead.
I am receiving…

Brian Fleishman
- 1,237
- 3
- 21
- 43
5
votes
1 answer
ColdFusion Folder Permission becomes read only
Running ColdFusion 10 currently, but this has been an ongoing issue for years, perhaps throughout CF6/7.
As part of a CMS, part of the validation is that the images are uploaded to a directory e.g.

Daniel Cook
- 1,033
- 1
- 9
- 19
4
votes
0 answers
How to use the cffile upload directly in amazon s3?
I want to upload a file into Amazon S3. Is it possible to upload a file into S3 using cffile action="upload" in Adobe's ColdFusion server? When I tried uploading a file, it's throwing an error:
The cause of this exception was:
…

Sathish Chelladurai
- 670
- 1
- 8
- 23
4
votes
1 answer
Upload Files from web url using Coldfusion
I have been allowing user to upload file via a form online like this:
4
votes
3 answers
CFFILE Write- How to make Unique if there's a conflict?
Any idea why CFFILE Write does not support making it unique but CFFile Upload does?
I'm using CFFILE Write to handle a GetHttpRequestData, and being able to support making it unique would be very helpful. Any ideas?

WozPoz
- 992
- 2
- 15
- 29
4
votes
1 answer
Coldfusion Upload of CSV returns mime-type error with mime-type 'text/plain'
I'm having trouble with ColdFusion 10. Code has been working, I'm not sure what changed where - the code itself hasn't changed in months in this area.
I have a cffile that looks like this:

Leanne
- 63
- 1
- 1
- 5
4
votes
1 answer
How to remove linefeed, carriage return and tabs from a string in ColdFusion?
I have a requirement to write strings to text files, but before that I need to ensure that the string does not contain any linefeed, carriage return, or tab characters.
I have tried this code for testing.

Deepak Kumar Padhy
- 4,128
- 6
- 43
- 79
3
votes
1 answer
CFFILE - Uploading a file using a component
I have a form that I would like to submit to a component for processing (CRUD behaviors), the problem is it seems passing multipart/form-data to a component somehow looses the file location. When it gets to the part of the component that should be…

wblakenc
- 464
- 1
- 5
- 19
3
votes
1 answer
coldfusion How to save pdf file in database and fetch it in browser
Insert to MS-SQL 2008 Database
INSERT INTO UploadedFiles
(
AccountId,
Filecontent
)
VALUES
(
…

Sung Ham
- 33
- 1
- 3
3
votes
2 answers
cffile creating blank lines when storing a table
I've got a cfsavecontent tag that saves a table. Later I use cffile to write the saved content to a file. When I look at that file, I see that there many blank lines inserted after tags in the table; and few blank lines inserted after …

Betty Mock
- 1,373
- 11
- 23
3
votes
1 answer
Coldfusion FileUpload function from cfc file not working
I am currently trying to upload a file using a function from a cfc file. I can get the code to work when I just call the on the same page. However, I wanted to learn how to call it from a function in a cfc file. I believe…

Errol Wallace
- 167
- 2
- 13
3
votes
2 answers
Using Coldfusion's CFFILE tag to monitor a progress log from FFMpeg
I want to learn how to use the CFFILE tag from ColdFusion to read the contents of a text file. In my case, that text file is a progress log that is generated by FFMpeg while it transcodes a media file. I want to write a ColdFusion script that will…

vrtjason
- 523
- 5
- 12