Depending on when the path is declared this solution would work in any case
Attach a file by drag & drop or click to upload