background preloader

Lift

Facebook Twitter

Lift Cookbook — Including HTML5 Shiv. Solution Use a FileParamHolder in your snippet, and extract file information from it when the form is submitted. Starting with a form which is marked as "multipart=true": <html><head><title> File Upload </title><script id= "jquery" src= "/classpath/jquery.js" type= "text/javascript" ></script><script id= "json" src= "/classpath/json.js" type= "text/javascript" ></script></head><body><form data-lift= "FileUploadSnippet?

Form=post;multipart=true" ><label for= "file" > Select a file: <input id= "file" ></input></label><input type= "submit" value= "Submit" ></input></form></body></html> We can bind the form in a snippet: Lift Web Framework 2.1 API : Overview. Seven Things: Home. Simply Lift.