cffile - ColdFusion tag for manipulating files on the server
Questions tagged [cffile]
96 questions
1
vote
1 answer
refusing to work
I'm pulling my hair our here and really can't figure out why this code will not work. I need to use to put a document on the server.
I've stripped the code to its bare minimum in an attempt to get the file to write to the…
user1211577
1
vote
1 answer
How to access the object created by a cffile upload in coldfusion
I have an assortment of issues, but I'm going to concentrate on one here. How to I access the object created from a cffile upload. I am currently doing as so.

d.lanza38
- 2,525
- 7
- 30
- 52
1
vote
3 answers
Issue with coldfusion cffile delete
I have a page where a user can update a page with 4 images and some other fields. There is already an image uploaded for each file input and when they upload a new one I want to take the new image, upload it then if the upload was successful delete…

d.lanza38
- 2,525
- 7
- 30
- 52
0
votes
1 answer
Upload a file to a server
I want the user to upload files to server.
In the destination path of cffile I am giving it as \servername\folder\filename.
However, it doesn't recognize this path. Any suggestions?

Aniruddha
- 3,157
- 4
- 32
- 48
0
votes
1 answer
coldfusion cffile upload passing a parameter to the action page
In coldfusion I have a basic cffile upload which works fine when the nameconflict parameter is explicit, such as 'overwrite'. But when I try to pass a parameter, it doesn't work.
0
votes
0 answers
CFFILE (action="copy") not working, CF Service running under local admin, and I can access remote file via UNC
I'm running ColdFusion 2016 Std. on Windows Server 2012 R2 Std. There is no Active Domain/Group Policy anything like that running, as I am the one and only person with access to the webserver (small company). I'm logged in as Administrator…

Brandon G
- 27
- 5
0
votes
1 answer
coldfusion cffile upload replace no file selected
In Coldfusion, using cffile upload, when a file is selected with the browse button the name of the selected file shows next to the button. So far, so good. When I submit the file for upload, the text changes back to "no file selected". This is…

Betty Mock
- 1,373
- 11
- 23
0
votes
0 answers
ColdFusion Read Mobile Device File and Write Mobile Device File - From Local Device
I am trying to read a file that is stored locally on a mobile device.
I'm having trouble knowing where to store it. Read/Write it from.
Should the file be right with the config.xml or stored in the www area on device.
Ultimately the web app is being…

Merle_the_Pearl
- 1,391
- 3
- 18
- 25
0
votes
1 answer
ColdFusion Write File
I'm reading a simple file of logset.txt which only contains
Login:,Pass:
File is stored on webroot.
Reading it, and if no data after :. I want user to set their login data and store it.
So they would enter on a form their login and password.
So…

Merle_the_Pearl
- 1,391
- 3
- 18
- 25
0
votes
0 answers
coldfusion/lucee cffile upload makeUnique not quite working
Here is a basic cffile upload with makeUnique:

Betty Mock
- 1,373
- 11
- 23
0
votes
2 answers
Lucee cfquery to a CSV file not formatting correctly
I am trying to take the result of a query and put it into a CSV file to then email to the user. All of the data in the CSV file is correct, but I'm also getting the HTML elements for some reason. Here is my code:

Cole Perry
- 333
- 1
- 5
- 27
0
votes
1 answer
Uploading the file names of my images to my database table
I'm having an issue with uploading or looping through the the file names of my images to my database table.
I am able to select various images and upload the selected image on my local machine to a specific folder that I designate. After the image…

user1824615
- 49
- 1
- 5
0
votes
0 answers
Write JSON to a file with CFFile Action Append
Is there any way to keep the last line of a text file when using the cffile action APPEND?
I am trying to write to a .txt file in JSON like format. So, I created a variable with everything I need:
json
coldfusion
coldfusion-9
cffile

user1673306
- 19
- 5
0
votes
1 answer
How to store an image file after uploading the image file in ColdFusion
I am fairly new to Coldfusion and I am having a hard time to figure out how to allow users to upload images in my form
Currently, I was able to find the following code that will upload the image in Coldfusion:

Roberto Flores
- 25
- 10
0
votes
1 answer
cfscript - uploading a file
I'm trying to upload a file using cfscript on a CF11 server
But every time I upload a file it rejects the mime type.
Sample error:
"The MIME type or the Extension of the uploaded file text/plain was not accepted by the server."
There is little…

Scotty
- 130
- 13