MCPcopy Create free account
hub / github.com/vastsa/FileCodeBox / generate_presigned_upload_url

Method generate_presigned_upload_url

core/storage.py:83–90  ·  view source on GitHub ↗

生成预签名上传URL :param save_path: 文件保存路径 :param expires_in: URL过期时间(秒),默认15分钟 :return: 预签名URL,如果不支持直传则返回None

(self, save_path: str, expires_in: int = 900)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected