WebFund 2016W: Tutorial 7: Difference between revisions

From Soma-notes
Created page with "[http://homeostasis.scs.carleton.ca/~soma/webfund-2016w/code/upload-demo.zip upload-demo]"
 
No edit summary
Line 1: Line 1:
[http://homeostasis.scs.carleton.ca/~soma/webfund-2016w/code/upload-demo.zip upload-demo]
In this tutorial you will be working with [http://homeostasis.scs.carleton.ca/~soma/webfund-2016w/code/upload-demo.zip upload-demo], a simple web app that can handle file uploads.
 
Tasks:
# Make the upload fail if the uploaded file is not of type "text/plain".
# Add a word count for each uploaded file to the file listing on /users.
# Change the upload success or failure page to be an HTML page that has a button to go back to /users entitle "Home".
# Add a download button for each file that when clicked sends the file back to the browser as a plain text, utf-8 encoded file.
# (Optional) Make the file storage persistent by enabling MongoDB storage for sessions.
# (Optional) Make the accounts password protected.

Revision as of 20:38, 9 March 2016

In this tutorial you will be working with upload-demo, a simple web app that can handle file uploads.

Tasks:

  1. Make the upload fail if the uploaded file is not of type "text/plain".
  2. Add a word count for each uploaded file to the file listing on /users.
  3. Change the upload success or failure page to be an HTML page that has a button to go back to /users entitle "Home".
  4. Add a download button for each file that when clicked sends the file back to the browser as a plain text, utf-8 encoded file.
  5. (Optional) Make the file storage persistent by enabling MongoDB storage for sessions.
  6. (Optional) Make the accounts password protected.