template drag n drop upload code