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
> well I can't think of a good reason NOT to do it that way. Though I'm
> trying to hard-code as little as possible, this isn't any more than the
> way I was doing it which specified a path for ExpandPath.
>
> So, do you think that maybe I should just store the image name in the DB
> rather than the path to it and then just implement the path in the
> display html, rather than in the db?
>
>>dont make it more complicated than it has too be
>>
>><cfset uploads="htdocs/HHPv1/images/calendar_uploads/">
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

