Hi there,

Generally speaking, that's now how uploading in lift works - any given
upload goes into a FileParamHolder object then you can persist it however
you would like (filesystem, database etc) as your essentially left with
Array[Byte]...

Does that help?

Cheers, Tim

On 13/07/2009 14:26, "kjetilge" <[email protected]> wrote:

> 
> I'm a newbie and I'm having troble with finding a hint in the Liftbook
> on how to set the path for an upload folder in Lift. In the manual
> there is an example using a variable called tmpDir. Problem is, there
> is no explanation for what the value of this variable should be. Apart
> from that, I've at least managed to load an image in the browser after
> defining a pictures folder in main/resources/toserve/pictures by
> using:
>         ResourceServer.allow {
>             case "pictures" :: _ => true
>         }
> Then I can do: <img src="/classpath/pictures/sykkel.jpg" alt="Sykkel"/
>> , and it works :-)
> But when I set the value tmpDir="/classpath/pictures/" and try to
> upload a file I get:
> java.io.FileNotFoundException: /classpath/pictures/Lift Book.pdf
> 
> I'm obviously doing something terribly wrong. Does anybody know how to
> do this ?
> 
> > 
> 



--~--~---------~--~----~------------~-------~--~----~
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