Hey Rick,
This is what I have:
<cfif isDefined("upload") AND upload EQ 'picture'>
<cfset memberPicturePath = '#expandPath("images/members")#'>
<cfset memberPictureFullPath =
'#memberPicturePath#/#URL.clubMemberId#/'>
<cfif NOT DirectoryExists(#memberPictureFullPath#)>
<cfdirectory action="create" mode="777"
directory="#memberPictureFullPath#">
<cffile action="upload" nameconflict="makeunique" mode="777"
filefield="uploadMemberPicture" destination="#memberPictureFullPath#">
<cfset imageCFC = createObject("component","image")>
<cfset imgInfo = imageCFC.resize("",
"#memberPictureFullPath##CFFILE.serverFile#",
"#memberPictureFullPath##CFFILE.serverFileName#2.jpg",100,200)>
<cfquery name='memberAdd' datasource='#APPLICATION.dsn#'>
INSERT into clubMember (
pictureFileName
) VALUES (
'#imgInfo#'
)
</cfquery>
<cfelse>
<cfset warnMe = 6>
</cfif>
</cfif>
Basically, I check to see if the directory already exists...if not I
allow creation of a directory after the clubMember's Id then I upload
the file and have the custom imagecfc tag create a component. Then it
"supposedly" should resize the image and record the name on the database
so it can be recalled by <img>
What am I missing?
Ravi.
Rick Root wrote:
> You'll have to go into a LOT more detail than that =)
>
> The ImageCFC support forums are here, btw: http://url.rickroot.com/u/z
>
> Rick
>
> On 6/6/07, Ravi Gehlot <[EMAIL PROTECTED]> wrote:
>
>> The web site you are accessing has experienced an unexpected error.
>> Please contact the website administrator.
>>
>> The following information is meant for the website developer for
>> debugging purposes.
>> Error Occurred While Processing Request
>> The system has attempted to use an undefined value, which usually
>> indicates a programming error, either in your code or some system code.
>>
>> Null Pointers are another name for undefined values.
>>
>> --
>> -------------------------------------------
>> Ravi Gehlot.
>> Sr. Management
>> Sunshine Technology Solutions, LLC
>> http://www.sunshinetechsolutions.com/
>> [EMAIL PROTECTED]
>> Cell Phone: (407) 860-3775
>> Business Line: (407) 745-1433
>> -------------------------------------------
>>
>> Confidentiality Notice: This message including any
>> attachments is for the sole use of the intended
>> recipient(s) and may contain confidential and privileged
>> information. Any unauthorized review, use, disclosure or
>> distribution is prohibited. If you are not the
>> intended recipient, please contact the sender and
>> delete any copies of this message.
>>
>>
>>
>>
>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280245
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4