Use a conditional operator to get the same result, but improving readability of the code.
Attach a file by drag & drop or click to upload