Add upload cancel function