|
|
| New Topic Reply Subscription Options |
|
| Forums: ImageCFC Forum: PRoblem with writing files | |||
|
|||
| Schletz
Joined: 06/18/07 Posts: 1 |
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 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? |
||
|
|||
| admin
Location: Apex, NC Posts: 193 |
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
|
||
|
|||
| admin
Location: Apex, NC Posts: 193 |
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
|
||
|
|||
| New Topic Reply Subscription Options |
|
| Subscription Options |
| Subscription options are available after you log in. |
There are 8 active user sessions right now.