Instead, use a thread-safe way. Current code using it is not threaded, but future code will be.
Attach a file by drag & drop or click to upload