The Coldfusion Open Source Forums
Home | ImageCFC | CFFM | BlogCFM | CFMBB | CFOpenMail / ImapCFC | CFOpenChat
Forums | Profile | Inbox | Members | Chat | Search | Login | RSS
Vivio Technologies CFML Hosting
New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page

Forums: ImageCFC Forum: PRoblem with writing files
Created on: 06/18/07 {ts '2013-05-24 12:11:00'} Views: 2687 Replies: 2
PRoblem with writing files
Posted Monday, June 18, 2007 at {ts '2013-05-24 12:11:00'}

Hello!

I am trying to get your component to work, but have some configuration problem I can't figure out.

1. Running CFMX7 on Linux
2. I can read files successfully, but cannot write files.
3. Permissions are set to 777 on both source file and folder so I could eliminate them as an issue.

This is the error I am getting when I try to write a pic:

The write operation failed: Attribute validation error for tag CFFILE. - The value of the attribute source, which is currently "/opt/coldfusionmx7/runtime/servers/coldfusion/SERVER-INF/temp/wwwroot-tmp/img6537199885846651178.tmp", is invalid.

Any ideas?

RE: PRoblem with writing files
Posted Tuesday, June 19, 2007 at {ts '2013-05-24 20:48:00'}

My first guess would be that the file does not exist at the time you're running the code, or you don't actually have access to that directory because of sandbox security or something.

That being said.. why is it a .tmp file, as opposed to a .jpg or .gif or whatever?

Is this somewhere in the upload stage prior to using cffile aciton="upload" or something?

Rick

Rick Root
I'm not certified, but I have been told that I'm certifiable!

www
RE: PRoblem with writing files
Posted Tuesday, June 19, 2007 at {ts '2013-05-24 20:54:00'}

Shoot that's what I get for not looking at my own code... I know where that is.

DUring the resize process, image.cfc writes the output to a temp file, and then copies it into the destination location.

The error your getting means that coldfusion failed to copy the file from the temp directory back to the destination location.

It's POSSIBLE that when coldfusion WROTE that file, it wrote it in such a way that it didn't have permission to READ it. Look in that directory and see if the file exists and what the permissions on it are.

If you don't have access to that directory, you might need to change THIS line of code:

<cfset tempOutputFile = GetTempFile(GetTempDirectory(),'img')>

Instead of getTempDirectory() you might have to hardcode an alternative directory like /home/domain/temp or something

Rick Root
I'm not certified, but I have been told that I'm certifiable!

www

New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page
Subscription Options
Subscription options are available after you log in.

There are 8 active user sessions right now.