Fix #5956 - handle file input with stripping text
[roojs1] / undefined