Sorry, let me clarify that a bit more with an example... could you not
dynamically set the upload path based on run mode?

http://github.com/dpp/liftweb/blob/1bf23d21dff2a752b8b53ce96a83ba5d8da075bb/sites/example/src/main/scala/bootstrap/liftweb/Boot.scala#L211

Cheers, Tim

On Feb 23, 1:26 pm, Timothy Perrett <[email protected]> wrote:
> Chas,
>
> Why dont you simply use property configuration based on the run mode?
>
> Cheers, Tim
>
> On Feb 23, 5:42 am, "Charles F. Munat" <[email protected]> wrote:
>
> > I am doing file uploads to several of my sites. Right now, I've hard
> > coded the path to the directory to which the files are saved. This is a
> > pain because it's not the same directory on the production server as it
> > is on the dev server.
>
> > How can I grab the current path so I can work with that? Or is there a
> > better way? For example, if I had an /images/ directory in my web root,
> > how would I save uploaded images to that directory?
>
> > Thanks,
> > Chas.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to