File validation support