Use correct interpretation of return value from APIs.
Attach a file by drag & drop or click to upload