This functionality is now provided by libxfce4ui, see commit 8990efaf "Use the spawn code from libxfce4ui."
Attach a file by drag & drop or click to upload