Commit 9f7da5cb authored by Taylor Otwell's avatar Taylor Otwell

added methods for upload_of.

parent ee4dd5e9
...@@ -46,6 +46,29 @@ class Upload_Of extends Rule { ...@@ -46,6 +46,29 @@ class Upload_Of extends Rule {
} }
return true; return true;
} }
/**
* Set the acceptable file extensions.
*
* @return Upload_Of
*/
public function has_extension()
{
$this->extensions = func_get_args();
return $this;
}
/**
* Set the maximum file size in bytes.
*
* @param int $maximum
* @return Upload_Of
*/
public function less_than($maximum)
{
$this->maximum = $maximum;
return $this;
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment