Cloudreve [Redirected Source] The sign url from redirected source should include filename if possible.

vsnjm48y  于 5个月前  发布在  其他
关注(0)|答案(5)|浏览(65)

Describe the bug
The sign url like {host}/f/RO66yguR/TEST.jpg from redirected source should include filename if possible.
For example, the ?attname=TEST.jpg for Qiniu KODO.

Additional context
Fix soon.

rn0zuynd

rn0zuynd1#

Without this, when use the redirected source to download file, the filename will be the file key in the 3rd storage rather than as in the cloudreve.

jpfvwuh4

jpfvwuh43#

One problem is that some people expect previewing files directly via source links, (videos, audio, images), they don't want to download these files.

ds97pgxw

ds97pgxw4#

That's right. I didn t take this into consideration.
Actually, when use link as a element of a html file, no matter if link contains parameters such as ?attname or not, the file won t be downloaded by the browser, but be displayed as a part. The situation you mentioned might be that some users want to open the link directly in the browser and preview it directly?
For this situation, I suggest use similar solution in Onedrive, that is add the parameter download=1 at the end of the link to indicate direct download instead of preview.

zu0ti5jz

zu0ti5jz5#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题