If data length is zero, the file size should be zero
Check type should run after connection:didReceiveData:.
update spec to 1.0.1