<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Upload document WEB API</title><link>https://community.appian.com/discussions/f/integrations/21034/upload-document-web-api</link><description>Is it possible to upload diffrent type of documents in upload document web api. i need to upload pdf ,jpg and png in a single API can anyone help me pls 
 and can i pass a binary document into an upload document web API?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Upload document WEB API</title><link>https://community.appian.com/thread/81975?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 08:25:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:775d83f5-f730-44a2-be59-7c19eb931ef0</guid><dc:creator>udhay kumar</dc:creator><description>&lt;p&gt;thank you so much ranjith .it worked&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upload document WEB API</title><link>https://community.appian.com/thread/81920?ContentTypeID=1</link><pubDate>Mon, 24 May 2021 13:41:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9724ba82-d8e2-4849-98d6-1b4e6c56f8cd</guid><dc:creator>ranjith.shanmugam</dc:creator><description>&lt;p&gt;Hi Udhay,&lt;/p&gt;
&lt;p&gt;Configure&amp;nbsp;Appian-Document-Name Headers like below(don&amp;#39;t give file type in value), but you will get the same name as Name for all time.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/18/pastedimage1621863393568v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;here are some results.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/18/pastedimage1621863522128v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/18/pastedimage1621863538791v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upload document WEB API</title><link>https://community.appian.com/thread/81919?ContentTypeID=1</link><pubDate>Mon, 24 May 2021 12:58:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e4636dd-8a30-4b84-b2ce-a418eb5fcd32</guid><dc:creator>udhay kumar</dc:creator><description>&lt;p&gt;hii ranjith,&lt;/p&gt;
&lt;p&gt;thank you for your response .the problem is i can upload all types of documents but its not taking the correct extension&amp;nbsp;&lt;/p&gt;
&lt;p&gt;letme tell you an example if im uploading a jpg file means it only uploads the file but not the extension.&lt;/p&gt;
&lt;p&gt;second senario: if i set my default extension as jpg means it converts all the files(pdf,docx,png) which im uploading into jpg format&lt;/p&gt;
&lt;p&gt;is there any default setting which accepts all format?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upload document WEB API</title><link>https://community.appian.com/thread/81917?ContentTypeID=1</link><pubDate>Mon, 24 May 2021 12:11:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b2136bb-ab3c-4873-80a6-aa18ac9922f3</guid><dc:creator>ranjith.shanmugam</dc:creator><description>&lt;p&gt;Hi Udhay,&lt;/p&gt;
&lt;p&gt;Yes, you can upload files of a different type in the same API. If you need to restrict files other than pdf and jpg you can do that by&amp;nbsp;file extension check(document(http!request.body, &amp;quot;extension&amp;quot;)) and return the response according to the file&amp;nbsp;type uploaded.&lt;/p&gt;
&lt;p&gt;If your question is multiple docs in a single web API call - I guess only one doc is possible on a single go.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>