Code Changes
-
Importing the
time
module: Thetime
module is imported to measure the total time taken for the file upload. -
Displaying the Total Time: Added a line to display the total time taken for the file upload after displaying the file size. The total time is calculated using the
start_time
andend_time
variables and formatted to two decimal places. -
Displaying the Saved Location: Added a line to display the saved location of the file. The file path is obtained using the
file_path
variable. -
Rearranged Print Statements: The order of the print statements is rearranged to match the updated sequence, providing a more logical flow of information.