Fixes #3539 : check inputs in download a file