<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: EPiServer: Using the new Unified File System</title>
	<atom:link href="http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/</link>
	<description>Chatter about EPiServer, ASP.NET, CSS and Web Development.</description>
	<lastBuildDate>Wed, 08 Sep 2010 10:48:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: HesaPesa</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-3069</link>
		<dc:creator>HesaPesa</dc:creator>
		<pubDate>Fri, 14 Nov 2008 20:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-3069</guid>
		<description>using EPiServer.Web.Hosting;</description>
		<content:encoded><![CDATA[<p>using EPiServer.Web.Hosting;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik Haglund</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-3059</link>
		<dc:creator>Fredrik Haglund</dc:creator>
		<pubDate>Thu, 09 Oct 2008 14:40:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-3059</guid>
		<description>K: Setting bypassaccesscheck to true in web.config for a Virtual Path Provider turns off security. A visitor that does not have access to edit or admin mode can usually not change the files.

I suggest that you read the Administrators Manual (http://world.episerver.com/en/Documentation/Categories/Documentation-Type/Manuals/) and find the chapter about file security.

/Fredrik</description>
		<content:encoded><![CDATA[<p>K: Setting bypassaccesscheck to true in web.config for a Virtual Path Provider turns off security. A visitor that does not have access to edit or admin mode can usually not change the files.</p>
<p>I suggest that you read the Administrators Manual (<a href="http://world.episerver.com/en/Documentation/Categories/Documentation-Type/Manuals/" rel="nofollow">http://world.episerver.com/en/Documentation/Categories/Documentation-Type/Manuals/</a>) and find the chapter about file security.</p>
<p>/Fredrik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: K</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-3058</link>
		<dc:creator>K</dc:creator>
		<pubDate>Thu, 09 Oct 2008 12:31:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-3058</guid>
		<description>Hi
When trying to get a file by:
UnifiedFile file = HostingEnvironment.VirtualPathProvider.GetFile(virtualPath) as UnifiedFile;

I get access denied if i dont set &quot;bypassaccesscheck = true&quot; in web.config. I wonder where i can set credentials for this access if its even possible? Does setting bypassaccesscheck to true make the files unsecure in any way or whats the consequenses?

thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi<br />
When trying to get a file by:<br />
UnifiedFile file = HostingEnvironment.VirtualPathProvider.GetFile(virtualPath) as UnifiedFile;</p>
<p>I get access denied if i dont set &#8220;bypassaccesscheck = true&#8221; in web.config. I wonder where i can set credentials for this access if its even possible? Does setting bypassaccesscheck to true make the files unsecure in any way or whats the consequenses?</p>
<p>thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Page Folders and Uploading of files in EPiServer &#124; Fredrik Haglund's blog</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-2872</link>
		<dc:creator>Page Folders and Uploading of files in EPiServer &#124; Fredrik Haglund's blog</dc:creator>
		<pubDate>Fri, 05 Sep 2008 08:29:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-2872</guid>
		<description>[...] ImageFileUpload component but where do you save the file in EPiServer? I wrote a post earlier about how to use the unified file system in EPiServer and this is the [...]</description>
		<content:encoded><![CDATA[<p>[...] ImageFileUpload component but where do you save the file in EPiServer? I wrote a post earlier about how to use the unified file system in EPiServer and this is the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jørgen Helgheim</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-2863</link>
		<dc:creator>Jørgen Helgheim</dc:creator>
		<pubDate>Thu, 04 Sep 2008 08:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-2863</guid>
		<description>Hi Fredrik

Thanks for this post. It was very useful!

But I got errors (GDI+) when using The suggested Bitmap save method. Instead I used Morten Leerhøy&#039;s stream alternative. It worked fine! Deleted the last line of code: fs.Close();. It raised an exception, because it is already closed by sw.Close();</description>
		<content:encoded><![CDATA[<p>Hi Fredrik</p>
<p>Thanks for this post. It was very useful!</p>
<p>But I got errors (GDI+) when using The suggested Bitmap save method. Instead I used Morten Leerhøy&#8217;s stream alternative. It worked fine! Deleted the last line of code: fs.Close();. It raised an exception, because it is already closed by sw.Close();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-2779</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 28 Jul 2008 08:30:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-2779</guid>
		<description>Thanks, I have figure out this myself.
To have ability to check-in or check-out UnifiedFile file, it should be converted to IVersionFile using method &quot;TryAsVersioningFile&quot;.</description>
		<content:encoded><![CDATA[<p>Thanks, I have figure out this myself.<br />
To have ability to check-in or check-out UnifiedFile file, it should be converted to IVersionFile using method &#8220;TryAsVersioningFile&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik Haglund</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-2771</link>
		<dc:creator>Fredrik Haglund</dc:creator>
		<pubDate>Tue, 22 Jul 2008 09:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-2771</guid>
		<description>Hi Andrew!

I need to see some code to help you. Post in the forum and get back: http://world.episerver.com/Forum/</description>
		<content:encoded><![CDATA[<p>Hi Andrew!</p>
<p>I need to see some code to help you. Post in the forum and get back: <a href="http://world.episerver.com/Forum/" rel="nofollow">http://world.episerver.com/Forum/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-2770</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 21 Jul 2008 12:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-2770</guid>
		<description>Hi. Fredrik
When I create file in VPP dynamically from stream it stays checked out and I fail to read it. I&#039;m receiving following error: &quot;File has no checked in version and can only be access by the author&quot;. Could you help me with fixing this?</description>
		<content:encoded><![CDATA[<p>Hi. Fredrik<br />
When I create file in VPP dynamically from stream it stays checked out and I fail to read it. I&#8217;m receiving following error: &#8220;File has no checked in version and can only be access by the author&#8221;. Could you help me with fixing this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morten Leerhøy</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-2749</link>
		<dc:creator>Morten Leerhøy</dc:creator>
		<pubDate>Wed, 04 Jun 2008 08:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-2749</guid>
		<description>Hi Frederik,

Thanks for this post - it cleared up a few things for me - though I can&#039;t seem to get the UnifiedFile.UnifiedFileCheckedIn event to fire when adding a file with:

UnifiedFile uf = pagedir.CreateFile(FileUpLoad.FileName);
Stream fs = uf.Open(FileMode.Create);
System.IO.BinaryWriter sw = new BinaryWriter(fs);
sw.Write(FileUpLoad.FileBytes);
sw.Flush();
sw.Close();
fs.Close();

any suggestions?</description>
		<content:encoded><![CDATA[<p>Hi Frederik,</p>
<p>Thanks for this post &#8211; it cleared up a few things for me &#8211; though I can&#8217;t seem to get the UnifiedFile.UnifiedFileCheckedIn event to fire when adding a file with:</p>
<p>UnifiedFile uf = pagedir.CreateFile(FileUpLoad.FileName);<br />
Stream fs = uf.Open(FileMode.Create);<br />
System.IO.BinaryWriter sw = new BinaryWriter(fs);<br />
sw.Write(FileUpLoad.FileBytes);<br />
sw.Flush();<br />
sw.Close();<br />
fs.Close();</p>
<p>any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morten Strand-Langbakk</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-2747</link>
		<dc:creator>Morten Strand-Langbakk</dc:creator>
		<pubDate>Thu, 22 May 2008 14:20:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-2747</guid>
		<description>Solved it. 
Whenever a file is added the UnifiedFile.UnifiedFileCheckedIn is also called.
I put my code in here and evrything works as a charm :-)</description>
		<content:encoded><![CDATA[<p>Solved it.<br />
Whenever a file is added the UnifiedFile.UnifiedFileCheckedIn is also called.<br />
I put my code in here and evrything works as a charm <img src='http://blog.fredrikhaglund.se/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morten Strand-Langbakk</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-2746</link>
		<dc:creator>Morten Strand-Langbakk</dc:creator>
		<pubDate>Thu, 22 May 2008 13:01:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-2746</guid>
		<description>Hi Fredrik.
Great posts on the new Unified File System. I have avtually more a question than a comment on your blog.

Do you know when in the event stack the filesummary for a UnifiedFile is created and stored ?

I have hooked into the UnifiedDirectory.UnifiedFileAdded event to add som data to the filesummary in code, but at this point the file.Summary is still null, so I cannot add my summary data...

file.Summary.Dictionary[&quot;Searchmetadata&quot;] = &quot;some metadata I want to have indexed&quot;;</description>
		<content:encoded><![CDATA[<p>Hi Fredrik.<br />
Great posts on the new Unified File System. I have avtually more a question than a comment on your blog.</p>
<p>Do you know when in the event stack the filesummary for a UnifiedFile is created and stored ?</p>
<p>I have hooked into the UnifiedDirectory.UnifiedFileAdded event to add som data to the filesummary in code, but at this point the file.Summary is still null, so I cannot add my summary data&#8230;</p>
<p>file.Summary.Dictionary["Searchmetadata"] = &#8220;some metadata I want to have indexed&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik Haglund</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-2156</link>
		<dc:creator>Fredrik Haglund</dc:creator>
		<pubDate>Wed, 23 Jan 2008 19:51:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-2156</guid>
		<description>Jonas, EPiServer XForms is their own framwork to let editors build forms without knowing anything about html. Do not misstake it for being the same as the proposed standard for forms in xhtml from w3c.</description>
		<content:encoded><![CDATA[<p>Jonas, EPiServer XForms is their own framwork to let editors build forms without knowing anything about html. Do not misstake it for being the same as the proposed standard for forms in xhtml from w3c.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-2155</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Wed, 23 Jan 2008 16:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-2155</guid>
		<description>Thanx for the answer. That is how I will solve the problem.

Well, at least there is no support for file upload in the EPiServer xforms. There seems to be one according to x3c
http://www.w3.org/MarkUp/Forms/2003/xforms-for-html-authors.html#FileSelect

:)</description>
		<content:encoded><![CDATA[<p>Thanx for the answer. That is how I will solve the problem.</p>
<p>Well, at least there is no support for file upload in the EPiServer xforms. There seems to be one according to x3c<br />
<a href="http://www.w3.org/MarkUp/Forms/2003/xforms-for-html-authors.html#FileSelect" rel="nofollow">http://www.w3.org/MarkUp/Forms/2003/xforms-for-html-authors.html#FileSelect</a></p>
<p> <img src='http://blog.fredrikhaglund.se/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik Haglund</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-2154</link>
		<dc:creator>Fredrik Haglund</dc:creator>
		<pubDate>Tue, 22 Jan 2008 22:18:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-2154</guid>
		<description>Jonas, there is no support from to upload files with xforms (as far as I know).

If you want that functionality you would have to implement it on the page template either below the xform or on the thank you page.

Use ASP.NET&#039;s &lt;code&gt;FileUpload&lt;/code&gt; component and then use the stream available on &lt;code&gt;yourFileUpload.PostedFile.InputStream&lt;/code&gt;.</description>
		<content:encoded><![CDATA[<p>Jonas, there is no support from to upload files with xforms (as far as I know).</p>
<p>If you want that functionality you would have to implement it on the page template either below the xform or on the thank you page.</p>
<p>Use ASP.NET&#8217;s <code>FileUpload</code> component and then use the stream available on <code>yourFileUpload.PostedFile.InputStream</code>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-2153</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Tue, 22 Jan 2008 17:01:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-2153</guid>
		<description>So one way to upload a file by a visitor from a (public) form would be to use the Unified File System as described above? What I mean is, there is no EPiServer xform way?</description>
		<content:encoded><![CDATA[<p>So one way to upload a file by a visitor from a (public) form would be to use the Unified File System as described above? What I mean is, there is no EPiServer xform way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Configure EPiServer File Manager &#124; Fredrik Haglund's blog</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-2152</link>
		<dc:creator>Configure EPiServer File Manager &#124; Fredrik Haglund's blog</dc:creator>
		<pubDate>Tue, 22 Jan 2008 00:41:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-2152</guid>
		<description>[...] Follow this link to see more examples on how to use EpiServers Unified File System. [...]</description>
		<content:encoded><![CDATA[<p>[...] Follow this link to see more examples on how to use EpiServers Unified File System. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik Haglund's blog &#183; Storing metadata attached to uploaded files</title>
		<link>http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/comment-page-1/#comment-2144</link>
		<dc:creator>Fredrik Haglund's blog &#183; Storing metadata attached to uploaded files</dc:creator>
		<pubDate>Mon, 07 Jan 2008 20:21:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/?p=55#comment-2144</guid>
		<description>[...] Subscribe to feed    &#171; EPiServer: Using the new Unified File System [...]</description>
		<content:encoded><![CDATA[<p>[...] Subscribe to feed    &laquo; EPiServer: Using the new Unified File System [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
