<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: API_Yandex_Disc]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17049&amp;type=atom" />
	<updated>2022-04-04T00:28:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17049</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: API_Yandex_Disc]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152695#p152695" />
			<content type="html"><![CDATA[<p>Я бы использовал гугл диск.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-04-04T00:28:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152695#p152695</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: API_Yandex_Disc]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152693#p152693" />
			<content type="html"><![CDATA[<p>Альтернатива - не использовать яндекс.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2022-04-03T19:58:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152693#p152693</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: API_Yandex_Disc]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152692#p152692" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong><br />Я имел ввиду, может быть проблема в этой части или есть другая альтернатива.</p><div class="codebox"><pre><code>
f := FileOpen(path_file, &quot;r&quot;)
safeArray := ComObjArray(VT_UI1:=0x11, f.length)
pvData := NumGet(ComObjValue(safeArray) + 8+A_PtrSize)
f.RawRead(pvData + 0, f.length)
f.Close()
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2022-04-03T18:24:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152692#p152692</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: API_Yandex_Disc]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152691#p152691" />
			<content type="html"><![CDATA[<p>А разве здесь техподдержка яндекса?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2022-04-03T17:02:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152691#p152691</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: API_Yandex_Disc]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152690#p152690" />
			<content type="html"><![CDATA[<p>Добрый день! Подскажите пож-та, хочу залить видеофайлы ( размер ~50-100мб) на Яндекс-Диск, заливается очень долго ( ~ 5 минут ) либо вообще не заливается. Аудио &quot;.wav&quot; таких же размеров - проблем нет. Заранее спасибо!<br /></p><div class="codebox"><pre><code>
path_file := A_desktop &quot;\1.mp4&quot;
SplitPath, path_file, fileName

HTTP.Open(&quot;GET&quot;, &quot;https://cloud-api.yandex.net/v1/disk/resources/upload?path=&quot;test/&quot; . fileName &quot;&amp;overwrite=true&quot; , false)
HTTP.SetRequestHeader(&quot;Authorization&quot;, &quot;OAuth &quot; token)
HTTP.SetRequestHeader(&quot;Content-Type&quot;, &quot;application/json&quot;)
HTTP.Send()
HTTP.WaitForResponse()
			
obj := JSON.Parse(HTTP.ResponseText)
url_upload := obj.href

f := FileOpen(path_file, &quot;r&quot;)
safeArray := ComObjArray(VT_UI1:=0x11, f.length)
pvData := NumGet(ComObjValue(safeArray) + 8+A_PtrSize)
f.RawRead(pvData + 0, f.length)
f.Close()

HTTP.Open(&quot;PUT&quot;, url_upload , false)
HTTP.Send(safeArray)
HTTP.WaitForResponse()
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2022-04-03T15:19:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152690#p152690</id>
		</entry>
</feed>
