This content has been marked as final. Show 4 replies
1)Is application.fullPathPhotos a full path to a directory, ending in a backslash (e.g. c:\uploads\myPics\)?
2)filefield="photo" (without the form prefix)
A good place to start would be to <cfrethrow> the exception in your
<cfcatch> block so you can see what the actual error is, without having to
Thanks for your suggestions guys,
Both of your suggestions have lead me to this question.
My path to the upload folder looks like this, "www.mywebsite.com/projectname/imgs/photos/ ". Every example I have seen, has been to use a full path starting with c:/.
Does it matter that I'm using a domain name as the path?
Here is what I got back from the <cfrethrow> tag;
Security: The requested template has been denied access to http:\www.mywebsite.com\projectname\imgs\photos.
The following is the internal exception message: access denied (java.io.FilePermission http:\www.mywebsite.com\projectname\imgs\photos read)
Enable Robust Exception Information to provide greater detail about the source of errors. In the Administrator, click Debugging & Logging > Debugging Settings, and select the Robust Exception Information option.
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Remote Address 22.214.171.124
Date/Time 27-Jun-06 07:47 PM
I noticed that on the error page, the directory that has denied acces only has 1 "\" after the http:
I've double checked my code, and both "\"'s are there.
Could that be the problem?
Thanks for any help you can offer, this thing is driving me crazy. ;)
> Does it matter that I'm using a domain name as the path?
Yes, very much so.
Having an HTTP URL there makes no sense at all. It might make sense if you
had a file URI there (not an HTTP one), but not sure if it would work. it
should be a file-system path.