upload plugin 
copy from 
http://zywang.iteye.com/blog/759001