Add a security check for PUT model file.