If you are looking to implement a custom attachment control to your Smartforms, here is an enhanced control method to do so.
http://community.k2.com/t5/K2-blackpearl/Drag-and-Drop-Upload-Control/ba-p/63942
There are many other projects that can be downloaded from the market. This is a good way to share solutions.