1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

cfx_help

Discussion in 'Programming' started by devmonk, Oct 10, 2006.

  1. #1
    I am trying to use the cfx_image tag to resize an image uploaded by a user. I have tried on my local machine and a remote server and keep getting the same error. However, I copied and pasted the code from the zip the component was in and just changed the parameters. Can anyone help me figure out what is going on? My code and the error are listed below.

    Thanks!

    Jason

    CODE:

    <cfset dirpath = #expandPath("./")#>
    <cffile action="upload" filefield="pictFile" nameconflict="overwrite" destination="#dirpath#_temp\">
    
    <html>
    <head>
    	<title>IML resizing</title>
    </head>
    
    <body>
    <cfset imagefile = "#dirpath#_temp\#clientFile#">
    
    <CFX_IMAGE ACTION="RESIZE" 
    FILE="#imagefile#"
    OUTPUT="#dirpath#StudentUnion\studentPicts\#SESSION.auth.studentID#.jpg"
    X="200"
    >
    
    <cffile action="delete" file="#imagefile#">
    
    <cflocation addtoken="no" url="index.cfm">
    </body>
    </html>
    Code (markup):
    Error:

    Error occurred in tag CFX_IMAGE
    Unexpected error occurred while processing tag.
    The cause of this error is yet unknown.

    The error occurred in D:\inetpub\vhosts\cbtsonline.net\subdomains\v2\httpdocs\StudentUnion\formatPicture.cfm: line 15

    13 : FILE="#imagefile#"
    14 : OUTPUT="#dirpath#StudentUnion\studentPicts\#SESSION.auth.studentID#.jpg"
    15 : X="200"
    16 : >
    17 :
     
    devmonk, Oct 10, 2006 IP