Temporal fix for the empty file error
Override Request::duplicate so that it handles cases where input files are null
Fix indentation
Format fixes
Simplify
Merge remote-tracking branch 'upstream/master'
Merge pull request #6256 from eduard44/master

[5.0] Fix Broken File Upload When Submitting A Form Without Selecting A File
Simplify.