The steps to implement file uploading are
- Define a proper directory called Uploaddir in config.json that is readable and writable by the server.
"Uploaddir" default: "/tmp"
- In your web uploading form, define a uploading input field with type=file and name=xxx.
- Receive the information of uploaded files in Controller.
You may upload multiple files at once, just to make sure they are assigned different names. For security reason, Uploaddir should not be open to online. After the upload, you can manually move the uploaded file to wherever you’d like.