Dugan Chen's Homepage

Various Things

Progressively Enhancing Upload Forms

This is how you progressively enhance an upload form. Start with your average run-of-the-mill upload form. The following example takes a file whose maximum size is two placekittens: We can use this form in page like the following, where the user is expected to upload an image. After the form is submitted, the server-side code […]