Scala LiftWeb: Upload File using AJAX

Table of contents
Reading Time: < 1 minute

Liftweb provides AJAX functionality for all html elements except file upload using Scala .
But there is a way to upload file using AJAX by binding form as AJAX form .

1) add below lines in your html .


You will get file element in fileHolder variable . In handleFile() , write your file functionality code .

Written by 

Ayush is the Sr. Lead Consultant @ Knoldus Software LLP. In his 10 years of experience he has become a developer with proven experience in architecting and developing web applications. Ayush has a Masters in Computer Application from U.P. Technical University, Ayush is a strong-willed and self-motivated professional who takes deep care in adhering to quality norms within projects. He is capable of managing challenging projects with remarkable deadline sensitivity without compromising code quality.

1 thought on “Scala LiftWeb: Upload File using AJAX1 min read

Comments are closed.