Answer the question
In order to leave comments, you need to log in
How to log in and upload a file to YandexDisk?
Hello, I work at the training ground, everything seems to work out. And how to implement all this in PHP, I need to upload to YADISK and download from it, I can’t even do authorization for an hour already.
Answer the question
In order to leave comments, you need to log in
This helped: htmlweb.ru/php/example/upload_yandex_disk.php really a problem with large files
I don't know how in PHP , but in Powershell I do this:
$headers = New-Object "System.Collections.Generic.Dictionary"
$headers.Add("Authorization" ,'OAuth ТуТваШтоКеНнИд')
$headers.Add("Content-Type","application/json")
$Log = Invoke-WebRequest -method POST -URI ("https://cloud-api.yandex.net:443/v1/disk/resources/upload?path=setup.zip&url=http%3A%2F%2Fshoma.info%2FMDpv5") -Headers $headers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question