The user submitted variable in this function is frame, not buf.
Attach a file by drag & drop or click to upload