instead, check whether buf is modified when it returns.
Attach a file by drag & drop or click to upload