mirror of
https://github.com/moparisthebest/xeps
synced 2025-02-07 02:40:22 -05:00
Merge commit 'refs/pull/651/head' of https://github.com/xsf/xeps into merge/xep-0363
This commit is contained in:
commit
b56ff2c477
18
xep-0363.xml
18
xep-0363.xml
@ -29,6 +29,16 @@
|
|||||||
<email>daniel@gultsch.de</email>
|
<email>daniel@gultsch.de</email>
|
||||||
<jid>daniel@gultsch.de</jid>
|
<jid>daniel@gultsch.de</jid>
|
||||||
</author>
|
</author>
|
||||||
|
<revision>
|
||||||
|
<version>0.7.0</version>
|
||||||
|
<date>2018-05-30</date>
|
||||||
|
<initials>dg</initials>
|
||||||
|
<remark>
|
||||||
|
<ul>
|
||||||
|
<li>Changed not-allowed error to forbidden as this is more appropriate according to &rfc6120;</li>
|
||||||
|
</ul>
|
||||||
|
</remark>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<version>0.6.0</version>
|
<version>0.6.0</version>
|
||||||
<date>2018-04-21</date>
|
<date>2018-04-21</date>
|
||||||
@ -225,7 +235,7 @@
|
|||||||
</iq>]]></example>
|
</iq>]]></example>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Error conditions' anchor='errors'>
|
<section1 topic='Error conditions' anchor='errors'>
|
||||||
<p>Instead of providing the client with a slot the service MAY respond with an error if the requested file size is too large.</p>
|
<p>Instead of providing the client with a slot the service MAY respond with an error if the requested file size is too large. In addition the entity MAY inform the requester about the maximum file size.</p>
|
||||||
<example caption='Alternative response by the upload service if the file size was too large'><![CDATA[
|
<example caption='Alternative response by the upload service if the file size was too large'><![CDATA[
|
||||||
<iq from='upload.montague.tld'
|
<iq from='upload.montague.tld'
|
||||||
id='step_03'
|
id='step_03'
|
||||||
@ -261,7 +271,7 @@
|
|||||||
stamp='2017-12-03T23:42:05Z' />
|
stamp='2017-12-03T23:42:05Z' />
|
||||||
</error>
|
</error>
|
||||||
</iq>]]></example>
|
</iq>]]></example>
|
||||||
<example caption='Alternative response by the upload service to indicate a permanent error to a client that is not allowed to upload files'><![CDATA[
|
<example caption='Alternative response by the upload service to indicate an auth error to a client that is not allowed to upload files'><![CDATA[
|
||||||
<iq from='upload.montague.tld'
|
<iq from='upload.montague.tld'
|
||||||
id='step_03'
|
id='step_03'
|
||||||
to='romeo@montague.tld/garden'
|
to='romeo@montague.tld/garden'
|
||||||
@ -270,8 +280,8 @@
|
|||||||
filename='très cool.jpg'
|
filename='très cool.jpg'
|
||||||
size='23456'
|
size='23456'
|
||||||
content-type='image/jpeg' />
|
content-type='image/jpeg' />
|
||||||
<error type='cancel'>
|
<error type='auth'>
|
||||||
<not-allowed xmlns='urn:ietf:params:xml:ns:xmpp-stanzas' />
|
<forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas' />
|
||||||
<text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Only premium members are allowed to upload files</text>
|
<text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Only premium members are allowed to upload files</text>
|
||||||
</error>
|
</error>
|
||||||
</iq>]]></example>
|
</iq>]]></example>
|
||||||
|
Loading…
Reference in New Issue
Block a user