Fixing issue with min inputs on file upload