Alternative to pending_upload when using sharing_create_shared_link_with_settings?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Bắt đầu với dropbox/base.py, tại khu vực định nghĩa đã lỗi thời sharing_create_shared_link, và so sánh nó với sharing_create_shared_link_with_settings. Kiểm tra bề mặt API được tạo sinh cùng mọi bài kiểm thử hoặc tài liệu liên quan đến hành vi của pending_upload. Được xem là hoàn tất khi xác định được một đường dẫn được hỗ trợ và không lỗi thời, hoặc ghi lại rằng hành vi này không khả dụng; issue không có mục tiêu kiểm thử hoặc triển khai cụ thể.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 983
- Fork
- 331
- Merge trung bình
- 3 phút
- Pull request đã merge (30 ngày)
- 10
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dropbox/dropbox-sdk-python
-
question
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
dropbox/dropbox-sdk-python#585 · 4 bình luận ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
dropbox/dropbox-sdk-python#491 · 1 bình luận ·
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
dropbox/dropbox-sdk-python#482 · 1 bình luận · 2 reaction ·
-
bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
dropbox/dropbox-sdk-python#475 · 1 bình luận ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
dropbox/dropbox-sdk-python#459 · 4 bình luận · 1 reaction ·
Tất cả issue của dropbox/dropbox-sdk-python
Issue tương tự
-
bug confirmed issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
open-webui/open-webui#30750 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100