Alternative to pending_upload when using sharing_create_shared_link_with_settings?
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 dropbox/base.py 中已弃用的 sharing_create_shared_link 定义附近开始,并将其与 sharing_create_shared_link_with_settings 进行比较。检查生成的 API 表面,以及与 pending_upload 行为相关的测试或文档。完成的标准是确定一条受支持且未弃用的路径,或记录该行为不可用;此 issue 没有指定的测试或实现目标。
由索引模型根据 Issue 内容生成。
描述
The method sharing_create_shared_link has a pending_upload argument which you can use to ask Dropbox to generate a url for a file or folder which is still in the process of being uploaded. If you do this and then use the link before the file is fully uploaded, you see a nice "This file cannot be previewed" UI, showing a zero-byte file. Once the file upload is complete, you can use the URL to share as you would any other generated URL.
This is fine, but sharing_create_shared_link is marked as deprecated and has been replaced by sharing_create_shared_link_with_settings. The new method doesn't have the pending_upload argument, nor does there seem to be any setting which you can pass in to get the same behavior.
So my question is: how do I get a shared link from a pending upload using non-deprecated API? I am not doing any uploading myself, I just have a script which generates shared links. So I can't do a zero-length upload because it could clobber the in-progress one which I have no control over.
Versions
- What version of the SDK are you using? Python SDK 11.36.0
- What version of the language are you using? Python 3.9.6
- What platform are you using? macOS 12.6.6
- 主要语言
- Python
- 星标
- 986
- 派生
- 332
- 平均合并
- 1 小时 54 分钟
- 30 天内合并 PR
- 10
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dropbox/dropbox-sdk-python 的其他 Issue
-
question
难度 4/5 3-5 天 新手友好度 35/100
dropbox/dropbox-sdk-python#585 · 4 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
dropbox/dropbox-sdk-python#491 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 3/5 1-2 天 新手友好度 35/100
dropbox/dropbox-sdk-python#482 · 1 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
bug
难度 5/5 一周以上 新手友好度 20/100
dropbox/dropbox-sdk-python#475 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 50/100
dropbox/dropbox-sdk-python#459 · 4 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 dropbox/dropbox-sdk-python 的全部 Issue
相似的 Issue
-
docs pydanty:is-working
难度 2/5 1-3 小时 新手友好度 75/100
pydantic/pydantic-ai#9800 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
-
[Bug]: With --api-server-count > 1, gauges such as vllm:num_requests_running have no samples until the first request可能已有人在做 @roy6n23 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
vllm-project/vllm#59988 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
pymc-devs/pymc-examples#897 ·
-
难度 1/5 1 小时以内 新手友好度 91/100