Examples: Add CORS supporting snippet to upload.php.
Examples, Custom: Add Error handler.
Re-calculate the stats once the file is fully uploaded. Close #829.
Update js/.