On Unices, it almost always comes down to a permission issue.

Looks like you don't have write privileges, so that could be the issue.

Chmod the entire folder to 777 (ALL privileges to everyone; caution!) just to test.

Since you're using a temp directory, it might be a better idea to create an "upload" directory somewhere (can be out of the root) that you can then assign the necessary privileges to - and this folder won't go away, so the privileges will stick.

Then use an application variable to set the upload directory. I always do this anyway; makes life easier

>Hey all, I'm having a little trouble setting up my site on Linux. We're
>kinda testing the waters to see if it's worth getting wet.
>
>As I was saying, cffile isn't working for me. I've got a part where I upload
>an image and stick it in the GetTempDirectory() folder. From there I
>cfcontent it to view a preview of it, then, on approval, move it to the
>final destination I just created. This is where it errors out, giving me:
>
>The value of the attribute source, which is currently
>"/opt/jrun4/servers/cfusion2/SERVER-INF/temp/cfusion-war-tmp/3122706.jpg",
>is invalid.
>
>The photo does exist, as does the destination folder. The permissions are
>set to root-root rw-r-r, and I have confirmed Jrun logs in as root. I can
>copy the file to the final destination and delete the original, but I just
>can't move it.
>
>Any insight would be appreciated. Thanks!
>
>-nathan strutz
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to