The HTC Desire and Legend Android models feature the Bluetooth file transfer protocol, making it possible to wirelessly transfer files to and from your device from another Bluetooth-equipped device.
To enable Bluetooth on the device, browse to Settings --> Wireless & Networks:

Tick the option to Turn on Bluetooth.
Tap on the option for Bluetooth Settings:

Tick the option to make the device Discoverable. Select Advanced Settings:

Tick the option to enable the Bluetooth FTP Server.
On your PC or other Bluetooth device, search for available Bluetooth devices. The device will be listed (you can adjust the Bluetooth name of your device if you wish in the Bluetooth settings):

Select the option to connect to the device. The HTC PDA will prompt you to accept the incoming Bluetooth connection in the Notification area:

Select the option to accept the request, you will be prompted to enter a PIN code for the Bluetooth connection:

Enter in a suitable code - this can be anything of your choosing, ideally of up to either 4 or 5 digits. You will be then prompted to enter the same PIN code on the other device:

Enter in the same PIN code. The two devices are now paired. The HTC device will then prompt you to accept the incoming file transfer in the Notification area:

Select the option to authorise the connection:

Select OK. You will now be able to send and receive files to and from the HTC device via Bluetooth:

Files can be sent via Bluetooth from directly within media applications by selecting the option to Share:

Links:
[1] http://ukblog.im-mobility.com/category/blog/android
[2] http://ukblog.im-mobility.com/category/blog/desire
[3] http://ukblog.im-mobility.com/category/blog/htc
[4] http://ukblog.im-mobility.com/category/blog/legend