2019-05-09 18:54:39 +12:00
|
|
|
<?php
|
|
|
|
|
2020-06-12 07:36:10 +12:00
|
|
|
namespace Appwrite\Storage\Validator;
|
2019-05-09 18:54:39 +12:00
|
|
|
|
|
|
|
use Utopia\Validator;
|
|
|
|
|
|
|
|
class File extends Validator
|
|
|
|
{
|
|
|
|
public function getDescription()
|
|
|
|
{
|
|
|
|
return 'File is not valid';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-09-07 05:04:26 +12:00
|
|
|
* NOT MUCH RIGHT NOW.
|
2019-05-09 18:54:39 +12:00
|
|
|
*
|
|
|
|
* TODO think what to do here, currently only used for parameter to be present in SDKs
|
|
|
|
*
|
2020-10-27 13:08:29 +13:00
|
|
|
* @param mixed $name
|
2019-09-07 05:04:26 +12:00
|
|
|
*
|
2019-05-09 18:54:39 +12:00
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function isValid($name)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|