Mike, image.cfc is for manipulating images on the server.

It looks like you're trying to pass the path of a local file to the 
component and you can't do that.  You'll have to handle the upload with 
cffile first before you can use image.cfc to manipulate it.

go ahead and send any further inquiries off list.

Rick

Mike Little wrote:
> hi rick,
> 
> i am just trying out your component and have setup the following...
> 
> <cfif isDefined("FORM.image")>
>       <cfset imagecfc = 
> createObject("component","#Request.app.cfcRoot#.image")> 
>       <cfset new_image = imageCFC.scaleX("", "#FORM.image#", "C:\Documents 
> and Settings\Craig\Desktop\resized.jpg", 100)>
> </cfif>
> 
> <form action="test.cfm" method="post" enctype="multipart/form-data">
>       <input type="file" name="image">
>       <input type="submit" name="submit" value="Submit">
> </form>
> 
> what am i doing wrong as it does not seem to be working?
> 
> mike
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231511
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to