Questions tagged [cffile]

cffile - ColdFusion tag for manipulating files on the server

96 questions
2
votes
1 answer

cffile is overwriting existing file

The nameconflict attribute doesn't seem well documented, so maybe I'm using it wrong. But if I write a file (binary data) using the following code, it's overwriting the existing file of the same name.
Phaelax z
  • 1,814
  • 1
  • 7
  • 19
2
votes
1 answer

How to generate excel file (xls) and save it to a server location without downloading it using ColdFusion

We have a page that is generating dynamic content and format is output based on user's selection. For example, if a user selected HTML format then, page comes as HTML page. That works fine as well as PDF format. The challenge is, if a user selecting…
user1706426
  • 387
  • 1
  • 3
  • 12
2
votes
1 answer

ColdFusion allow user to download CSV file

I am trying to allow the user to download a CSV file from the app. I have googled this a lot and as with almost any coldfusion issue I can't find much. Here is what I am trying:
Cole Perry
  • 333
  • 1
  • 5
  • 27
2
votes
1 answer

Can I use cffile to copy multiple files?

In ColdFusion I am setting up a new directory with
Betty Mock
  • 1,373
  • 11
  • 23
2
votes
1 answer

File Parsing - How to identify specific lines only if next line contains a certain word

I have a largish file of around 50k lines. I need to enter data from a line into a db only if the next line has a certain word in it. For instance 00:00:01 Request from 1.1.1.1 for A-record for www.website1.com 00:00:01 Sending reply to 1.1.1.1…
Paul Hopkinson
  • 431
  • 1
  • 6
  • 14
2
votes
3 answers

How can we map RVA (Relative Virtual Address) of a location to PE file offset?

I need to map RVA (Relative virtual address that's taken from pdb file) to PE file(EXE) offset when reading PE file from a disk location. For this I need to convert RVA to file offset so that I can read out GUIDS(CLSID,IID's) from that…
Usman
  • 77
  • 2
  • 9
2
votes
2 answers

Getting this error *** OSError: cannot load library C:\WINDOWS\libzsfc.dll: error 0xc1

I am trying to load a .dll file using python cffi library, but whiele I am trying to load it I am getting following error:- *** OSError: cannot load library C:\WINDOWS\libzsfc.dll: error 0xc1 I am using this from cffi import FFI ffi =…
Mahendra Garg
  • 516
  • 1
  • 9
  • 27
2
votes
1 answer

Getting strange characters when using cffile to loop over a csv

I' am on ColdFusion 11. I' am using the following code to loop over a CSV File and output the first row in the loop.
Devil Raily
  • 562
  • 1
  • 5
  • 15
2
votes
0 answers

how can I create text file using cfml

How to generate text file using ColdFusion web development, and how can I perform write,update,delete actions.
Mohanrajan
  • 721
  • 9
  • 18
2
votes
3 answers

Is there a way to make cffile.oldFileSize return a correct value?

When working with cffile in ColdFusion, after an upload of a file to a webserver, the cffile structure is created that is supposed to have a value in it called "oldFileSize". Every time I do an upload and examine that value, it has the new file's…
mrankin
  • 2,373
  • 3
  • 25
  • 29
2
votes
3 answers

ColdFusion 9 cffile error Access is Denied

I am getting the following error: The cause of this exception was: java.io.FileNotFoundException: //server/c$/folder1/folder2/folder3/folder4/folder5/login.cfm (Access is denied). When doing this:
Lauren Robinson
  • 443
  • 2
  • 9
  • 26
2
votes
1 answer

How to include ColdFusion code but not have it processed?

I am using ColdFusion 8. I am creating some code that will create a folder and insert a file. The file will be tweaked later by a human. I create the directory like this: Next, I need…
Evik James
  • 10,335
  • 18
  • 71
  • 122
1
vote
1 answer

ColdFusion's cffile is adding the tmp directory to the destination attribute

I'm trying to upload an image to my server and the destination attribute of cffile is adding the tmp directory to the front of my destination path. I know from another question on here that The destination has to be a full path, otherwise it gets…
d.lanza38
  • 2,525
  • 7
  • 30
  • 52
1
vote
2 answers

ColdFusion Not Recognizing TIFF MIME type?

Coldfusion 8, Apache, Mac OS X Server 10.5. I have a web application which lets users upload images. However, it always fails to upload TIFF files. JPEG, GIF, and PNG upload just fine, this problem seems to be only with TIFFs. The user selects the…
Grant
  • 11
  • 1
1
vote
1 answer

Coldfusion, jquery and sending a file using ajax

I'm trying to send file using jquery ajax method, and I don't know how to receive it in Coldfusion, convert it in proper file object, and finally, save it on server in Media folder. There is something I want: var myDocument =…