if statement for uploadprogress is ready