you can also set the image path in the Application.cfm page as well to
make coding shorter
<cfset Iphoto="http://#CGI.Server_Name#/uploads/">
then call it with
<img src="">
> That sounds great. I've not used the Application.cfm up until now, so I
> look into that.
>
> thanks for the advice.
>
>>i set that path in the Application.cfm template, then say when I need
>> it to display and image its a very simple call
>>and yes i would just store the image name in the db, other wise you get
>> a big mess for your url
>>
>>example, here is the code to do upload
>><!--- do the file upload now --->
>> <cfif isdefined("form.submit")>
>>
<cffile Action=""> >> Filefield="pic"
>> DESTINATION="#uploads#"
>> Nameconflict="makeunique" accept="image/*">
>> </cfif>
>>
>>
>>and displaying the photo like so
>><img
>>src=""> >>
>>
>>and by putting the upload path in the Application.cfm page, if you want
>> to change it you only have to do it in one place
>>
>>
>>hope it helps
>>dave
>>
>>
>>>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

