Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Access denied

87 views
Skip to first unread message

colesc8

unread,
Feb 24, 2005, 6:33:02 AM2/24/05
to
I have an upload form set as follows: <cfinsert datasource = 'pre_reg_info'
tablename = 'upload_table' formfields = ''> <cffile action='upload'
filefield='Form.file_upload' destination='www.ictmt7.org/uploads'> When I try
to upload a file to the remote site I get an error message: Security: The
requested template has been denied access to cffile. The following is the
internal exception message: access denied
(coldfusion.tagext.GenericTagPermission cffile) It works perfectly well when I
try it on my testing server. Has anyone else seen this before and knows
anything about what is going wrong? Would appreciate your help. Colin

JamesDad

unread,
Feb 24, 2005, 11:41:23 PM2/24/05
to
This may be a dumb question, but... is it possible that CFFILE disabled in CF Administrator on the remote site?

colesc8

unread,
Feb 25, 2005, 10:46:27 AM2/25/05
to
Thanks for the response, Jim. Believe me when it comes to levels of
understanding I am way below dumb! Yes. I think it was the problem - however,
having cleared that hurdle I have run up against another one as follows: When I
now try to upload a file, I get: String index out of range: -6 I'm currently
searching around for a solution to the problem but would appreciate your help
if you have come across this before. Colin

vkunirs

unread,
Mar 1, 2005, 1:05:33 AM3/1/05
to
Hi

We can denide the access to use the CFfile tag in cf admin. there we can
restrict to use the cffile tag.

for the destination we need to give the full path in the cffile tag.
try to give the full path of the directory, where you want to upload the
file

Abinidi

unread,
Mar 2, 2005, 2:07:05 AM3/2/05
to
This: destination='www.ictmt7.org/uploads'> Is not correct syntax. The
destination has to be a local path on the server such as :
c:\inetpub\website\folder\ or /var/www/html/websitefolder/ on a unix
system.

Willow315

unread,
Mar 3, 2005, 5:32:10 PM3/3/05
to
Well, it didn't pick up the form code, but it's pretty standard. I just don't
get what could possibly be wrong except maybe security settings on the server,
but why no error or access denied message. Also, I have made sure that nothing
is restricted in CF Administrator. If anyone can help, I'd really appreciate
it. Thanks, WCW

Willow315

unread,
Mar 3, 2005, 5:28:09 PM3/3/05
to
Hello: I am also having troubles with a CFFILE upload. However, I am getting no
error message, doing just a simple upload, but even though the action page
returns a successful file upload message, the key that indicates whether the
file was saved says, NO, and indeed the file has not been saved to the folder
I'm using. I am using the full path, when attempting to upload the file to a
separate folder, or a function that will save the file into the same folder as
the form and action template. It works on my test server, but not on the live
server. I, too am at a loss. I have been all over the Macromedia Knowledge
base, have received great advice, but nothing I do works. I'm testing this
process with a sample set of files right out of the Cold Fusion MX Web
Application Construction Kit. You'd think it would work. I've read every
instruction I can think of. Here's the code for the form and the action page,
minus the output that gives all the info about the uploaded file

<CFFILE
DESTINATION="#GetDirectoryFromPath(GetBaseTemplatePath())#"
ACTION="Upload"
NAMECONFLICT="Overwrite"
FILEFIELD="FileName">

0 new messages