Make buffer argument optional and rename to buffer_or_name.
Attach a file by drag & drop or click to upload