生成预签名上传URL :param save_path: 文件保存路径 :param expires_in: URL过期时间(秒),默认15分钟 :return: 预签名URL,如果不支持直传则返回None
(self, save_path: str, expires_in: int = 900)
| 81 | raise NotImplementedError |
| 82 | |
| 83 | async def generate_presigned_upload_url(self, save_path: str, expires_in: int = 900) -> Optional[str]: |
| 84 | """ |
| 85 | 生成预签名上传URL |
| 86 | :param save_path: 文件保存路径 |
| 87 | :param expires_in: URL过期时间(秒),默认15分钟 |
| 88 | :return: 预签名URL,如果不支持直传则返回None |
| 89 | """ |
| 90 | return None # 默认不支持直传,使用代理模式 |
| 91 | |
| 92 | async def file_exists(self, save_path: str) -> bool: |
| 93 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected