I am tryign to save a filename to a proeprty and send back to the server. My only option so far is to use [AllowHtml]
or [ValidateInput(false)]
, which works but I'm looking for something more specific.
Is there a data attribute that allows file names/paths, but not HTML in general?
If there is not, how can I write logic so that I can call the following when it's evaluating/binding?
bool validate(string s)
{
if (isValidFileName()) //this part I think I can write
{
return isDangerousRequest(); //what function do I call??
}
}