add stat before upload