Questions tagged [cffile]

cffile - ColdFusion tag for manipulating files on the server

96 questions
1
vote
4 answers

uploading files to a newly created directory in Coldfusion

I'm having trouble using cffile right before I create a directory. I am using the cffileupload tag and my url attribute is a page that has the following code. Basically the code below creates a new directory and uploads all the images to that…
Animal Rights
  • 9,107
  • 6
  • 28
  • 40
1
vote
1 answer

Strange Form problem: cffile not working

Hmmm...strange problems... I'm making a form to upload syllabi. Basically, someone go search for a course and select the button next to the course that says "Upload Syllabi." Next, a window will popup prompting them for the file. I pass this page…
Bri
  • 729
  • 2
  • 17
  • 38
1
vote
0 answers

Coldfusion 9 Flash Multifile Upload Widget fails due to unrelated code

This issue continues along with the inability to run the remaining parts of the process in the application, namely the file sorting by file type and the compression capability. I'm running into the issue that my pdf compression code is causing the…
Alex
  • 443
  • 3
  • 18
1
vote
1 answer

Form field defined but contains no file? ColdFusion

I'm trying to do an exception for cffile upload to ensure users only upload xls-related documents or no upload at all. I have a issue with the file upload. Even though the users may not attach anything to the input, the form will still go through…
De De De De
  • 326
  • 3
  • 10
  • 31
1
vote
1 answer

ColdFusion cffile action="read" how to get metadata?

If you use cffile action = "upload" you get a load of meta data (e.g., the filesize, fileextension etc.). How do you get the same data for a file that already exists on your server? I would expect cffile action="read" to give this but it seems it…
happysailingdude
  • 185
  • 1
  • 14
1
vote
1 answer

Preserve Last Modified Date while uploading File

I have an application to upload files to a server. However, when the files are uploaded, the "Date Modified" changes to the current date/time. Is there a way to preserve the date of the uploaded file? Or is there a way to change the Date Modified on…
Gaurav S
  • 999
  • 8
  • 16
1
vote
1 answer

Corrupt File Upload

For our ecommerce store, we have a backend that allows employees to upload product shots. These images are then resized to fit the design of the website. For a while now we've been having an issue with some very weird distortion in the images. Here…
Yisroel
  • 8,164
  • 4
  • 26
  • 26
1
vote
1 answer

file upload strange issue with size and extension

I am currently working on a script that will allow users to upload images, nothing too sophisticated just a few simple lines of code. Anyway, last night everything was working like a charm and now surprise surprise, strange things started happening…
user2595617
  • 219
  • 3
  • 13
1
vote
2 answers

On file upload, Coldfusion returns: C:\ColdFusion8\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp12429.tmp did not contain a file

Upon file upload, Coldfusion 8 returns: C:\ColdFusion8\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp12429.tmp did not contain a file. Does anyone know what may cause this? Bad syntax? Server permissions? Missing pieces? My cfform tag…
Dan Sorensen
  • 11,403
  • 19
  • 67
  • 100
1
vote
0 answers

Railo 4/ Tomcat / IIS7.5 / Coldfusion / cffile upload of docx not working

I just moved a web application from a ColdFusion to Railo server and encountered a puzzling issue with the application's file upload functionality. Everything works fine for almost all files, but .docx files don't get uploaded. In Railo I see the…
Bart B
  • 161
  • 10
1
vote
3 answers

How can I confirm a cffile write is successful?

I am using cffile to create a new file or update an existing file, depending on what the user requested. The request comes through a form from the previous procedure, so the code involving cffile looks like this:
Betty Mock
  • 1,373
  • 11
  • 23
1
vote
1 answer

css not working in cffile write

I have a report which is enclosed in a cfsavecontent tag. When I use #testcust# the report renders correctly. When I use cffile to save it to disk I lose the css formatting:
Betty Mock
  • 1,373
  • 11
  • 23
1
vote
1 answer

Using ColdFusion to save an uploaded image to the server

I'm being stymied by what I thought would be the relatively simple task of creating functionality to allow users to upload a picture to a server directory and am looking for some help. I have a simple form with a straightforward interface, passing a…
K_Cruz
  • 729
  • 6
  • 17
1
vote
1 answer

ColdFusion ServerFile is undefined in CFFile

When I try to run the following code, I'm getting the error message: "Element SERVERFILE is undefined in CFFILE.". I've done this a million times. Can anyone see what I'm missing?
1
vote
2 answers

Using CFFILE in a CFC Nightmare

I know this has been asked, but I cannot seem to find the solution that works. I have a CFM page that uses the following to pass data to a CFC
SiriusPhil
  • 149
  • 1
  • 9