04. [20p] Bonus: file upload

Bonus task: add a upload image input inside the account-details that uploads a file to the public/images/profile subfolder (also: create it!):

  • Use type=“file” attribute on the <input>;
  • Use multipart/form-data encoding type attribute on the <form> (Google it!);
  • Inside the Flask route function:
  • Finally, add an <img> tag to display the profile photo on the user's account page when everything is done!
ii/labs/s2/03/tasks/04.txt · Last modified: 2024/04/01 21:39 by florin.stancu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0