<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://elixirblocks.com/index.php?action=history&amp;feed=atom&amp;title=How_to_Download_a_Static_File_from_Phoenix</id>
	<title>How to Download a Static File from Phoenix - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://elixirblocks.com/index.php?action=history&amp;feed=atom&amp;title=How_to_Download_a_Static_File_from_Phoenix"/>
	<link rel="alternate" type="text/html" href="http://elixirblocks.com/index.php?title=How_to_Download_a_Static_File_from_Phoenix&amp;action=history"/>
	<updated>2026-06-02T07:33:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>http://elixirblocks.com/index.php?title=How_to_Download_a_Static_File_from_Phoenix&amp;diff=1820&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;&lt;source&gt; defmodule AppWeb.PageController do   use AppWeb, :controller   def home(conn, _params) do      path = Application.app_dir(:app, &quot;priv/test.json&quot;) #static directory     send_download(conn, {:file, path})     render(conn, :home, layout: false)   end end   &lt;/source&gt;&quot;</title>
		<link rel="alternate" type="text/html" href="http://elixirblocks.com/index.php?title=How_to_Download_a_Static_File_from_Phoenix&amp;diff=1820&amp;oldid=prev"/>
		<updated>2024-06-05T15:51:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;source&amp;gt; defmodule AppWeb.PageController do   use AppWeb, :controller   def home(conn, _params) do      path = Application.app_dir(:app, &amp;quot;priv/test.json&amp;quot;) #static directory     send_download(conn, {:file, path})     render(conn, :home, layout: false)   end end   &amp;lt;/source&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source&amp;gt;&lt;br /&gt;
defmodule AppWeb.PageController do&lt;br /&gt;
  use AppWeb, :controller&lt;br /&gt;
  def home(conn, _params) do&lt;br /&gt;
&lt;br /&gt;
    path = Application.app_dir(:app, &amp;quot;priv/test.json&amp;quot;) #static directory&lt;br /&gt;
    send_download(conn, {:file, path})&lt;br /&gt;
    render(conn, :home, layout: false)&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>