The function used to return NULL on error, but not checked in the caller site.
Attach a file by drag & drop or click to upload