<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs-old.ckeditor.com/index.php?action=history&amp;feed=atom&amp;title=CKFinder_1.x%2FServer_Side_Integration%2FThe_Commands%2FDownloadFile</id>
		<title>CKFinder 1.x/Server Side Integration/The Commands/DownloadFile - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://docs-old.ckeditor.com/index.php?action=history&amp;feed=atom&amp;title=CKFinder_1.x%2FServer_Side_Integration%2FThe_Commands%2FDownloadFile"/>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_1.x/Server_Side_Integration/The_Commands/DownloadFile&amp;action=history"/>
		<updated>2026-06-09T07:04:50Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_1.x/Server_Side_Integration/The_Commands/DownloadFile&amp;diff=3589&amp;oldid=prev</id>
		<title>Admin: moved CKFinder/Server Side Integration/The Commands/DownloadFile to CKFinder 1.x/Server Side Integration/The Commands/DownloadFile</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_1.x/Server_Side_Integration/The_Commands/DownloadFile&amp;diff=3589&amp;oldid=prev"/>
				<updated>2010-05-28T06:46:34Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/CKFinder/Server_Side_Integration/The_Commands/DownloadFile&quot; class=&quot;mw-redirect&quot; title=&quot;CKFinder/Server Side Integration/The Commands/DownloadFile&quot;&gt;CKFinder/Server Side Integration/The Commands/DownloadFile&lt;/a&gt; to &lt;a href=&quot;/CKFinder_1.x/Server_Side_Integration/The_Commands/DownloadFile&quot; title=&quot;CKFinder 1.x/Server Side Integration/The Commands/DownloadFile&quot;&gt;CKFinder 1.x/Server Side Integration/The Commands/DownloadFile&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 06:46, 28 May 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_1.x/Server_Side_Integration/The_Commands/DownloadFile&amp;diff=1691&amp;oldid=prev</id>
		<title>Wiktor at 14:36, 16 January 2008</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_1.x/Server_Side_Integration/The_Commands/DownloadFile&amp;diff=1691&amp;oldid=prev"/>
				<updated>2008-01-16T14:36:15Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:36, 16 January 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{CKFinder_SSI_Warning}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== DownloadFile ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== DownloadFile ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key ckeditor_docsold:diff:version:1.11a:oldid:1657:newid:1691 --&gt;
&lt;/table&gt;</summary>
		<author><name>Wiktor</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_1.x/Server_Side_Integration/The_Commands/DownloadFile&amp;diff=1657&amp;oldid=prev</id>
		<title>Wiktor: New page: == DownloadFile ==  Downloads a file from the server.  === Sample Request ===  Download the file named “Test.jpg” from the the root directory of the resource type “Files”. &lt;pre&gt;con...</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_1.x/Server_Side_Integration/The_Commands/DownloadFile&amp;diff=1657&amp;oldid=prev"/>
				<updated>2008-01-16T13:53:27Z</updated>
		
		<summary type="html">&lt;p&gt;New page: == DownloadFile ==  Downloads a file from the server.  === Sample Request ===  Download the file named “Test.jpg” from the the root directory of the resource type “Files”. &amp;lt;pre&amp;gt;con...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== DownloadFile ==&lt;br /&gt;
&lt;br /&gt;
Downloads a file from the server.&lt;br /&gt;
&lt;br /&gt;
=== Sample Request ===&lt;br /&gt;
&lt;br /&gt;
Download the file named “Test.jpg” from the the root directory of the resource type “Files”.&lt;br /&gt;
&amp;lt;pre&amp;gt;connector.php?command=DownloadFile&amp;amp;amp;type=Files&amp;amp;amp;currentFolder=%2F&amp;amp;amp;FileName=Test.jpg&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Response ===&lt;br /&gt;
&lt;br /&gt;
This command doesn’t expect the connector to return a text response. Instead, it must stream the file data to the browser.&lt;br /&gt;
&lt;br /&gt;
An important difference between a “download” stream and a normal stream, is that the “Save as” dialog will always show in the browser, instead of opening the file on it (like for .html or .jpg file). To achieve that, the “Content-Disposition” header must be set accordingly. For example, the following is the code to set the header when the “Test.jpg” file is requested (in PHP):&lt;br /&gt;
&amp;lt;pre&amp;gt;header( 'Content-Type: application/octet-stream' )&amp;amp;nbsp;;&lt;br /&gt;
header( 'Content-Disposition: attachment; filename=Test.jpg' )&amp;amp;nbsp;;&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wiktor</name></author>	</entry>

	</feed>