Modified upload process in another thread.