Use the new uri_get_suffix() overload that removes the query string.
Attach a file by drag & drop or click to upload