<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,7 +5,7 @@ class FileUploadController &lt; ApplicationController
   skip_before_filter :set_current_user
   
   def upload
-	unless params[:path] =~ /public/
+	unless params[:path] =~ /uploads/
 		render :nothing, :status =&gt; :forbidden
 		return false
 	end
@@ -27,13 +27,19 @@ class FileUploadController &lt; ApplicationController
   end
   
   def index
+	begin
+		Dir.new &quot;#{RAILS_ROOT}/public/uploads&quot;
+	rescue
+		FileUtils.mkdir &quot;#{RAILS_ROOT}/public/uploads&quot;
+	end
+	
 	@dir = &quot;#{RAILS_ROOT}/public/uploads&quot;
 	@save_to = &quot;/public/uploads&quot;
 	@parent = &quot;#{RAILS_ROOT}/public&quot;
   end
   
   def browse
-	unless params[:path] =~ /public/
+	unless params[:path] =~ /uploads/
 		render :nothing, :status =&gt; :forbidden
 		return false
 	end
@@ -59,7 +65,7 @@ class FileUploadController &lt; ApplicationController
   end
   
   def new_folder
-	unless params[:path] =~ /public/
+	unless params[:path] =~ /uploads/
 		render :nothing, :status =&gt; :forbidden
 		return false
 	end
@@ -83,7 +89,7 @@ class FileUploadController &lt; ApplicationController
   end
   
   def destroy
-	unless params[:path] =~ /public/
+	unless params[:path] =~ /uploads/
 		render :nothing, :status =&gt; :forbidden
 		return false
 	end</diff>
      <filename>app/controllers/file_upload_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@
 	&lt;% if FileTest.directory? path %&gt;
 	&lt;a href=&quot;#&quot; onclick=&quot;browse('&lt;%=path%&gt;')&quot;&gt;&lt;%=filename%&gt;&lt;/a&gt;
 	&lt;% else %&gt;
-	&lt;span&gt;&lt;%=filename%&gt;&lt;img src=&quot;/images/admin/delete.gif&quot; alt=&quot;Delete&quot; onclick=&quot;deleteFile('&lt;%=dir%&gt;', '&lt;%=filename%&gt;');&quot; title=&quot;delete&quot;/&gt;&lt;/span&gt;
+	&lt;span class=&quot;file_link&quot; style=&quot;cursor:pointer;&quot; onclick=&quot;window.open('&lt;%=File.join(@save_to.sub(&quot;/public&quot;, &quot;&quot;),filename)%&gt;');&quot;&gt;&lt;%=filename%&gt;&lt;img src=&quot;/images/admin/delete.gif&quot; alt=&quot;Delete&quot; onclick=&quot;deleteFile('&lt;%=dir%&gt;', '&lt;%=filename%&gt;');&quot; title=&quot;delete&quot;/&gt;&lt;/span&gt;
 	&lt;% end %&gt;
 &lt;/p&gt;
 &lt;%end%&gt;
\ No newline at end of file</diff>
      <filename>app/views/file_upload/_directory.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -223,6 +223,10 @@ padding:2px 5px 2px 22px;
 vertical-align:middle;
 cursor:pointer;
 margin:1px 0px 0px 4px;
+}
+.file_link:hover{
+text-decoration:underline;
+}
 &lt;/style&gt;
 
 &lt;%= render :partial =&gt; 'browse' %&gt;</diff>
      <filename>app/views/file_upload/index.html.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>01f14379f9d93088263678b2e2dd7dc0398f996c</id>
    </parent>
  </parents>
  <author>
    <name>unknown</name>
    <email>haitham.mohammad@espace.com.eg</email>
  </author>
  <url>http://github.com/espace/radiant-upload-manager/commit/ce1094678125d8c57a09ee3b4b0cda5cd81b48f4</url>
  <id>ce1094678125d8c57a09ee3b4b0cda5cd81b48f4</id>
  <committed-date>2008-10-08T06:15:11-07:00</committed-date>
  <authored-date>2008-10-08T06:15:11-07:00</authored-date>
  <message>now you can view files</message>
  <tree>d52c0e9f18827ecaf1bc522b17a8bfe18a9095c9</tree>
  <committer>
    <name>unknown</name>
    <email>haitham.mohammad@espace.com.eg</email>
  </committer>
</commit>
