Spent a whole evening fighting with input type file...but why...