added flag for uploadprogress