Answer the question
In order to leave comments, you need to log in
How to get a link to a public file uploaded to Yandex.disk?
To work with Ya.disk, I use the YaDisk library.
Actually, there are no problems with uploading photos to disk.
Task: after downloading, get a link to a public file. Not a download link, and the usual url
I did not find it in the manual for the library, unfortunately.
Maybe someone knows?
Thank you in advance
Answer the question
In order to leave comments, you need to log in
Looks like they didn't search well. Everything is yadisk.YaDisk.publish , yadisk.functions.resources.publish .
Hello!
You can create a public link in any convenient way described here: https://yandex.ru/support/disk/share/sharing.html .
This documentation is also useful for your question:
REST API: https://yandex.ru/dev/disk/api/reference/recent-pu...
WebDAV API: https://yandex.ru/dev/disk/doc/ dg/reference/publish...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question