AnApprentice
AnApprentice

Reputation: 111070

Coldfusion Bug, CFFILE worked on my dev box with CF7, stopped working on Prod with CF9

Here's a coldfusion bug that I can't figure out where to even start debuging....

On DEV, I have CF7, and use CFFILE to upload, and rename a file... Uploaded Images etc...

Now I deployed on Prod with CF9 and all image uploads don't work and are not erroring. Any ideas what could be wrong? Permission? Is there even a way to debug this bec CF isn't spitting out errors.

Thanks!

B

Upvotes: 0

Views: 342

Answers (2)

ale
ale

Reputation: 6430

Whenever I see issues with files not being written properly it's almost always a permissions issue. Specifically, that the account the ColdFusion (or JRUN.EXE) service is running under does not have permission to write to the desired resource.

Don't run CF under the SYSTEM account. Create a special user account that has the permissions needed and run CF under that. (Don't run CF under an Administrator account, either.)

Upvotes: 1

Jason
Jason

Reputation: 17976

Things to check:

  • Do you have try/catch around the upload?
  • Is there any errors in the server logs?
  • Where are you uploading to?
  • Can you create a very simple test page and get cffiles to work?

Upvotes: 2

Related Questions