<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Hard Drives and Movies</title>
	<link>http://www.lewismoten.com/2006/02/hard-drives-and-movies.html</link>
	<description>This is just a blog (web log) about me - Lewis Moten. Read along as I talk about daily happenings, movies, opinions, programming, and more.</description>
	<pubDate>Fri, 21 Nov 2008 04:14:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Krozy</title>
		<link>http://www.lewismoten.com/2006/02/hard-drives-and-movies.html#comment-2355</link>
		<dc:creator>Krozy</dc:creator>
		<pubDate>Tue, 07 Mar 2006 05:43:54 +0000</pubDate>
		<guid>http://www.lewismoten.com/2006/02/hard-drives-and-movies.html#comment-2355</guid>
		<description>See http://www.theonlinegamer.com/filetest.html for a sample of this in action.

On my machine, that isn't local, or trusted.  It's been tested on Firefox and Internet Explorer on windows.  At this time, I still consider this a very low level security threat.

-Lucas</description>
		<content:encoded><![CDATA[<p>See <a href="http://www.theonlinegamer.com/filetest.html" rel="nofollow">http://www.theonlinegamer.com/filetest.html</a> for a sample of this in action.</p>
<p>On my machine, that isn&#8217;t local, or trusted.  It&#8217;s been tested on Firefox and Internet Explorer on windows.  At this time, I still consider this a very low level security threat.</p>
<p>-Lucas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lewie</title>
		<link>http://www.lewismoten.com/2006/02/hard-drives-and-movies.html#comment-2349</link>
		<dc:creator>Lewie</dc:creator>
		<pubDate>Fri, 03 Mar 2006 15:29:54 +0000</pubDate>
		<guid>http://www.lewismoten.com/2006/02/hard-drives-and-movies.html#comment-2349</guid>
		<description>There is a bigger problem for users who sending files over the internet rather then a LAN, local machine, or trusted website.  The full path is not sent from the browser due to security reasons.</description>
		<content:encoded><![CDATA[<p>There is a bigger problem for users who sending files over the internet rather then a LAN, local machine, or trusted website.  The full path is not sent from the browser due to security reasons.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krozy</title>
		<link>http://www.lewismoten.com/2006/02/hard-drives-and-movies.html#comment-2347</link>
		<dc:creator>Krozy</dc:creator>
		<pubDate>Fri, 03 Mar 2006 05:35:25 +0000</pubDate>
		<guid>http://www.lewismoten.com/2006/02/hard-drives-and-movies.html#comment-2347</guid>
		<description>Philip,

I believe the filename passed in the byte stream is just the portion you are getting above. - If you look at clsUpload, there is a block of code that looks like this (near line 200, your version may vary from mine):


' Parse Filename
lnStartPosition = lnFileNamePosition + 10
lnEndPosition =  InstrB(lnStartPosition, lnBytes, CStrB(""""))
lsFileName = CStrU(MidB(lnBytes,lnStartPosition,lnEndPosition-lnStartPosition))
loField.FileName = lsFileName


As you can see, the field is being set with everything passed. - If you must have the directory/path information, then you can use a workaround on the page that contains the 'input type=file' element.  Add some javascript that registers in the onchange event to pickup the name of the file (actual path) and store it in a separate hidden field.  Lewie may have some sample code for this, but if not, it's fairly basic.

-Krozy</description>
		<content:encoded><![CDATA[<p>Philip,</p>
<p>I believe the filename passed in the byte stream is just the portion you are getting above. - If you look at clsUpload, there is a block of code that looks like this (near line 200, your version may vary from mine):</p>
<p>&#8216; Parse Filename<br />
lnStartPosition = lnFileNamePosition + 10<br />
lnEndPosition =  InstrB(lnStartPosition, lnBytes, CStrB(&#8221;"&#8221;"))<br />
lsFileName = CStrU(MidB(lnBytes,lnStartPosition,lnEndPosition-lnStartPosition))<br />
loField.FileName = lsFileName</p>
<p>As you can see, the field is being set with everything passed. - If you must have the directory/path information, then you can use a workaround on the page that contains the &#8216;input type=file&#8217; element.  Add some javascript that registers in the onchange event to pickup the name of the file (actual path) and store it in a separate hidden field.  Lewie may have some sample code for this, but if not, it&#8217;s fairly basic.</p>
<p>-Krozy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip Henderson</title>
		<link>http://www.lewismoten.com/2006/02/hard-drives-and-movies.html#comment-2343</link>
		<dc:creator>Philip Henderson</dc:creator>
		<pubDate>Thu, 02 Mar 2006 01:09:19 +0000</pubDate>
		<guid>http://www.lewismoten.com/2006/02/hard-drives-and-movies.html#comment-2343</guid>
		<description>Hi, I have been using your code for the asp upload functionality that I got from the ASP101 website. It works quite well, but I'm having problems trying to get the fully qualified path name of a file which I am uploading. 
In your example code: in the file ToDatabase.asp, you have: 
objRs.Fields("FileName").Value = objUpload.Fields("File1").FileName 

That works great, but if you have a file called c:\data\myUploads\abcfile.doc 
the objUpload.Fields("File1").Filename only returns the abcfile.doc part of the string. I can't figure out how to get the full pathname from the Input Type = "File" object. 

Any ideas? 

Thanks alot in advance. 

-Philip Henderson 
ERM Information Solutions</description>
		<content:encoded><![CDATA[<p>Hi, I have been using your code for the asp upload functionality that I got from the ASP101 website. It works quite well, but I&#8217;m having problems trying to get the fully qualified path name of a file which I am uploading.<br />
In your example code: in the file ToDatabase.asp, you have:<br />
objRs.Fields(&#8221;FileName&#8221;).Value = objUpload.Fields(&#8221;File1&#8243;).FileName </p>
<p>That works great, but if you have a file called c:\data\myUploads\abcfile.doc<br />
the objUpload.Fields(&#8221;File1&#8243;).Filename only returns the abcfile.doc part of the string. I can&#8217;t figure out how to get the full pathname from the Input Type = &#8220;File&#8221; object. </p>
<p>Any ideas? </p>
<p>Thanks alot in advance. </p>
<p>-Philip Henderson<br />
ERM Information Solutions</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lewie</title>
		<link>http://www.lewismoten.com/2006/02/hard-drives-and-movies.html#comment-2336</link>
		<dc:creator>Lewie</dc:creator>
		<pubDate>Wed, 01 Mar 2006 04:31:08 +0000</pubDate>
		<guid>http://www.lewismoten.com/2006/02/hard-drives-and-movies.html#comment-2336</guid>
		<description>The animated version was pretty long.  I think there were a few movies for it.  I may end up walking in the one down the street and picking up a DVD there.</description>
		<content:encoded><![CDATA[<p>The animated version was pretty long.  I think there were a few movies for it.  I may end up walking in the one down the street and picking up a DVD there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krozy</title>
		<link>http://www.lewismoten.com/2006/02/hard-drives-and-movies.html#comment-2335</link>
		<dc:creator>Krozy</dc:creator>
		<pubDate>Wed, 01 Mar 2006 01:09:47 +0000</pubDate>
		<guid>http://www.lewismoten.com/2006/02/hard-drives-and-movies.html#comment-2335</guid>
		<description>I want to get Harry Potter too. - Walmart has it for 21.87 compared to Amazon's 21.99.  I saw both movies in the theatres and think Harry Potter is better. - After having seen the animated version of narnia way back, I just felt like some of the magic was missing from this one.</description>
		<content:encoded><![CDATA[<p>I want to get Harry Potter too. - Walmart has it for 21.87 compared to Amazon&#8217;s 21.99.  I saw both movies in the theatres and think Harry Potter is better. - After having seen the animated version of narnia way back, I just felt like some of the magic was missing from this one.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
