If the data parameter of the request isn't actually a file, a backtrace results. Catch it and replace with a better error message.