Fix submission of inline files (works on FF, Chrome, but not IE10)