Many web application or mobile applications require end users to be able to upload files from their machines, common examples are profile images in many applications, images and videos as part of status update in social media and so on.
The web frontend, may want to implement drag and drop functionality for users to upload image, or may give buttons to launch file picker.
In this how-to we will learn how to handle file uploads on backend and frontend in a realm powered web app. Backend aspect can be used for a mobile application too.
We have split the how-to in two parts:
rustfmtFor Some Section