File Upload in Lua/LUCI

Hi All,
How can i upload a file to tmp folder using luci/lua. I am expecting a simple example for file upload.

On line 94 you can see an example of how to include a 'FileUpload' option to the model. If you want, you can change the directory it saves to file to by overwriting the write function from cbi.lua.