REAPI/extend/sdk/taobao/top/domain/UploadPolicy.php
2024-09-29 15:43:18 +08:00

30 lines
775 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* 请求策略
* @author auto create
*/
class UploadPolicy
{
/**
* 图片分类ID可通过taobao.picture.category.get获取。根目录值为0。
**/
public $dir_id;
/**
* token有效期的截止时间值为自1970年1月1日0时起的毫秒数。若当前时间晚于expired_timetoken失效上传文件失败。
**/
public $expired_time;
/**
* 限制用户上传文件的类型,多个值用;分隔。 可设置的值为image/jpeg,image/png,image/webp等。 若用户上传文件的mime类型不在mime_limit范围内无法上传成功。
**/
public $mime_limit;
/**
* 限制用户上传文件的大小。 若用户上传文件大小超过size_limit无法上传成功。
**/
public $size_limit;
}
?>