cffile - ColdFusion tag for manipulating files on the server
Questions tagged [cffile]
96 questions
1
vote
1 answer
ColdFusion 2016 - Upload .mp4
I am getting 404 File or Directory Not Found trying to upload a mp4 file.
When I switch to a .png all works fine.
Thoughts? I have increased my file post size to 250MB. It is a 150MB Video
I have tried Strict = "False" as well.
I tried an 8MB it…

Merle_the_Pearl
- 1,391
- 3
- 18
- 25
1
vote
3 answers
Wring JSON data to a text file but its going into heap space
I had this code which works fine when the database is small with few records, it writes the json to the file properly, but when the data is huge, it just times out
select *…

indy
- 33
- 3
1
vote
1 answer
ColdFusion CFFILE rename Attribute Validation Error, The value of the attribute source is invalid, even though File Exists and Paths are correct
I am going crazy trying to find a solution for this issue.
Here is the code:
FileExists
…
…

Jennifer Ayers
- 13
- 3
1
vote
2 answers
ColdFusion: how to get the filename of failed upload
I am trying to put the filename of a failed upload into an email, inside a try / catch, but I am not having any luck.
Based on this documentation - FileUploadAll() - I decided I am going to use error.

help
- 809
- 5
- 18
- 35
1
vote
1 answer
cffile upload location
In CF7, can anyone tell me if there's a way around the file being automatically uploaded to the /tmp/ folder before being moved to a destination location I provide? I'm trying to use cffile in a shared server location. I don't have access to the…

Gene R
- 1,555
- 5
- 19
- 32
1
vote
2 answers
ColdFusion - Need to loop through a folder to find specific files from a SQL query and copy or zip them to a temp folder
I'm trying to loop through a folder on a server to get a list of specific files and then have those files copied to a temp directory or zipped and copied to a temp directory. However I keep running into wall as I'm not sure how to do this. (Still an…

Subah
- 45
- 9
1
vote
0 answers
Get directory path pointing to the correct folder?
I'm trying to create link for the file upload. I'm calling file upload function from .cfc file. The file should be uploaded in a different folder. Here is what I get if after this code is executed in component.cfc page:

espresso_coffee
- 5,980
- 11
- 83
- 193
1
vote
2 answers
Coldfusion on Linux - cannot change permissions on a file
I've been banging my head against the wall on this one. I have a system that allows a user to FTP a zip file to the server. Then in the admin they can tell the application where this file is so a set of actions can be performed on the file.
Move…

jyoseph
- 5,435
- 9
- 45
- 64
1
vote
1 answer
Coldfusion 9 read .htm file and loop over data?
I have to loop over .htm files and search for specific fields in each file. Once field is detected I need to pull the data for that field. Here is example of the data:
Name: John, Miller
and code in htm file looks like this:
…

espresso_coffee
- 5,980
- 11
- 83
- 193
1
vote
3 answers
CFFILE attribution error with action="rename", says the file is invalid
My page has a form on it that interacts with a CFC via an ajax post. When the user changes the text and clicks save it should update the DB, which it does, and rename a photo with the value they typed in. Everything works except that I keep getting…

Ofeargall
- 5,340
- 5
- 28
- 33
1
vote
0 answers
Duplicate filenames when writing files in ColdFusion
I am trying to fix some code for a client. The issue is, we have .CSV files that are being written in ColdFusion but duplicates are constantly being generated for some reason, even with nameConflict = "Overwrite" in there. I am seeing that…

Tyler Austin
- 9
- 4
1
vote
2 answers
Can CFFILE support simultaneous writes to the file system?
We have written a feature that allows our users to upload a file to a nas device using UNC path. The feature has not been stressed tested and I'm not 100% convinced CFFILE can handle the load. Does cffile use multi-threading to perform writes to the…

Stefano D
- 958
- 5
- 17
1
vote
1 answer
coldfusion cffile upload giving strange error message
I am testing cffile with action upload. I have written a program which is doing the uploads correctly, but it is also sending me an error message. The message appears to be wrong, but I can't figure out what needs fixing. The program:
1
vote
2 answers
How to specify a relative in CFFile?
This is the path of my json file: https://devbox.mysite.com/search/KOGroups.json
But instead of using cfhttp, I like to use cfifle with read action. I don't know how to turn this path into a relative path for cffile. I've read about this ColdFusion…

2myCharlie
- 1,587
- 2
- 21
- 35
1
vote
2 answers
Coldfusion forms and image upload with cffile
I'm learning some Coldfusion, and I'm having trouble with this small form based application I'm building for a coworker.
Here is the first page: http://pastebin.com/aLPYHPsF
As you can see, what I want to do is get the user input and take that input…

Tyler
- 11
- 3