Uploading CSV and XLSX documents for computing
The application will deal with XLSX and CSV files that contain numerical data affecting worldwide house prices, such as the periodic actual and nominal House Price Index (HPI) of each country and the nominal and actual Personal Disposable Income (PDI) of the customers. Also, some documents will show how factors such as the house area, furnishing status, the main road preference, and the number of bedrooms and bathrooms can affect the housing prices in a country. Our application will upload these documents to the server for data analysis.
Flask has built-in support for a single- or multiple-file-uploading process through an HTML <form>
with enctype
of multipart/form-data
. It stores all uploaded files in the request.files
dictionary as FileStorage
instances. FileStorage
is a thin wrapper class from the werkzeug
module used by Flask to represent an incoming file. The following is an HTML script that uploads an XLSX document for data...