Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP: cf_autoresize tag error. Can't figure it out!!!

Status
Not open for further replies.

webpex

Programmer
Oct 17, 2000
2
US
Please help with an error I am receiving with this tag. I have no idea why it is occurring or how to fix it. Running the demo.cfm that came with the tag works, however any other time I try to use it I get this error. Is there something I'm missing? The error and code is pasted below:

Error occurred in CFX_IMAGE tag
The message:


The required attribute ACTION was not passed to the tag.


The error occurred while processing an element with a general identifier of (CFX_AUTORESIZE), occupying document position (19:2) to (19:173).

-------------------------------------------------------------------------------

ACTION PAGE:

<CFSET imagepath=&quot;C:\Inetpub\<CFSET thumbpath=&quot;C:\Inetpub\<CFSET MAXSIZE=&quot;400&quot;>
<CFSET THUMBSIZE=&quot;100&quot;>
<CFSET PREFIX=&quot;thumb_&quot;>
<CFSET FORM.picture1 = &quot;&quot;>
<CFSET FORM.picture2 = &quot;&quot;>
<CFSET FORM.picture3 = &quot;&quot;>
<CFSET FORM.picture4 = &quot;&quot;>
<CFSET FORM.thumb1 = &quot;&quot;>
<CFSET FORM.thumb2 = &quot;&quot;>
<CFSET FORM.thumb3 = &quot;&quot;>
<CFSET FORM.thumb4 = &quot;&quot;>

<CFIF IsDefined(&quot;FORM.upload1&quot;) AND FORM.upload1 IS NOT &quot;&quot;>
<CFX_AUTORESIZE imagepath=&quot;#imagepath#&quot; maxsize=&quot;#MAXSIZE#&quot; thumbsize=&quot;#THUMBSIZE#&quot; prefix=&quot;#PREFIX#&quot; filefield=&quot;upload1&quot; thumbpath=&quot;#thumbpath#&quot; nameconflict=&quot;makeunique&quot;>
<CFSET FORM.picture1 = photo>
<CFSET FORM.thumb1 = thumbnail>

<CFIF IsDefined(&quot;FORM.upload2&quot;)>
<CFX_AUTORESIZE imagepath=&quot;#imagepath#&quot; maxsize=&quot;#MAXSIZE#&quot; thumbsize=&quot;#THUMBSIZE#&quot; prefix=&quot;#PREFIX#&quot; filefield=&quot;upload2&quot; thumbpath=&quot;#thumbpath#&quot; nameconflict=&quot;makeunique&quot;>
<CFSET FORM.picture2 = photo>
<CFSET FORM.thumb2 = thumbnail>
</CFIF>

<CFIF IsDefined(&quot;FORM.upload3&quot;)>
<CFX_AUTORESIZE imagepath=&quot;#imagepath#&quot; maxsize=&quot;#MAXSIZE#&quot; thumbsize=&quot;#THUMBSIZE#&quot; prefix=&quot;#PREFIX#&quot; filefield=&quot;upload3&quot; thumbpath=&quot;#thumbpath#&quot; nameconflict=&quot;makeunique&quot;>
<CFSET FORM.picture3 = photo>
<CFSET FORM.thumb3 = thumbnail>
</CFIF>

<CFIF IsDefined(&quot;FORM.upload4&quot;)>
<CFX_AUTORESIZE imagepath=&quot;#imagepath#&quot; maxsize=&quot;#MAXSIZE#&quot; thumbsize=&quot;#THUMBSIZE#&quot; prefix=&quot;#PREFIX#&quot; filefield=&quot;upload4&quot; thumbpath=&quot;#thumbpath#&quot; nameconflict=&quot;makeunique&quot;>
<CFSET FORM.picture4 = photo>
<CFSET FORM.thumb4 = thumbnail>
</CFIF>
</CFIF>

<CFUPDATE DATASOURCE=&quot;database&quot; TABLENAME=&quot;#FORM.category#&quot; FORMFIELDS=&quot;adnumber,titlesize,titlecolor,border,bground,ctype,btype,picture1,picture2,picture3,picture4,thumb1,thumb2,thumb3,thumb4&quot;>

Any help would greatly be appreciated as this is a last resort.

Anthony
 
Hey Anthony,

I've seen this once before and the problem was the AutoResize.cfm file was not saved in the custom tags folder. Perhaps the demo.cfm was put in the custom tags folder instead?

I hope that fixes it for you.


Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top