Added option to stop the current upload process