Hi all,

   How to save the uploaded image into the folder via fileUpload in
Lift?

   I don't want to save it in the database, the example code in the
Pocketchangeapp

###
          val receiptOk = fileHolder match {
            case Full(FileParamHolder(_, null, _, _)) => true
            case Full(FileParamHolder(_, mime, _, data))
                      if mime.startsWith("image/") => {
//  How can i save the data into a image in the folder.
                        e.receipt(data).receiptMime(mime)
                        true
                      }
            case Full(_) => {
              S.error("Invalid receipt attachment")
              false
            }
            case _ => true
          }
###

   To save the image into the webapp\images folder, and it's shown
just use this link:
   /images/img1.jpg

  Thanks for any suggestion!

Cheers,
  Neil
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to