Correct MIME Type Not Always Being Returned In ASP.NET On Azure

 |  ASP.NET, Azure

I recently faced an issue where the MIME type for a .mp4 file was being returned from an Azure Web App as application/octet-stream and not the video/mp4 I was seeing locally.

Code

var filename = "test.mp4";
var mimeType = MimeMapping.GetMimeMapping(filename);

Output

Locally:  video/mp4
In Azure: application/octet-stream
Read more

Accessible JavaScript Click Handlers

 |  Web Accessibility, Javascript

The Internet is a fantastic medium where people can share information, knowledge… and cute cat photos freely and inclusively. HTML is one of the key technologies for the World Wide Web and when used correctly, largely ensures content is accessible to all. Unfortunately, with the rush to create sophisticated JavaScript rich web pages, the fundamentals of good semantic markup are often overlooked to the detriment of web accessibility.

One way to drastically exclude users from your site is to add JavaScript click handlers to non-interactive elements such as <div> and <span> tags.

Read more