<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1036206" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1036206</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/keeping-correctly-filled-data-when-validating-html-form-php#comment-1208579</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Greg K;208531 wrote:&lt;/strong&gt; The question here is if the browser actually sends the file &quot;location&quot; to the server. I imagine that for security reasons, it will not, but i could be wrong.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Good point, Greg. I believe the RFC mentions security as an issue as well.&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: 8. Security Considerations&lt;/p&gt;
&lt;p&gt;   It is important that a user agent not send any file that the user has&lt;br /&gt;
   not explicitly asked to be sent. Thus, HTML interpreting agents are&lt;br /&gt;
   expected to confirm any default file names that might be suggested&lt;br /&gt;
   with .  Never have any hidden fields be&lt;br /&gt;
   able to specify any file.&lt;/p&gt;
&lt;p&gt;   This proposal does not contain a mechanism for encryption of the&lt;br /&gt;
   data; this should be handled by whatever other mechanisms are in&lt;br /&gt;
   place for secure transmission of data, whether via secure HTTP, or by&lt;br /&gt;
   security provided by MOSS (described in RFC 1848).&lt;/p&gt;
&lt;p&gt;   Once the file is uploaded, it is up to the receiver to process and&lt;br /&gt;
   store the file appropriately.&lt;/p&gt;
&lt;p&gt;Source: &lt;a href=&quot;http://www.ietf.org/rfc/rfc1867.txt&quot; class=&quot;bb-url&quot;&gt;http://www.ietf.org/rfc/rfc1867.txt&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;mawooshen, I&#039;m sure you probably know this already but here goes...&lt;/p&gt;
&lt;p&gt;I did a bit of testing on XAMPP and it appears that the $_FILES array does not have the full path name of the file (it has the file name and a temporary file path). In addition, the RFC talks about the &#039;value&#039; in (input type=file) only tells the browser of a default file name. Like I said in my previous reply, I wasn&#039;t able to get that working. I&#039;m on windows, using php5, apache from xampp. You can try your luck on other setup environments, I suppose.&lt;/p&gt;
&lt;p&gt;Anyone else have any input, I&#039;m kind of curious to find a better way to do this.&lt;/p&gt;
 </description>
     <pubDate>Fri, 13 Oct 2006 00:54:17 +0000</pubDate>
 <dc:creator>sol90</dc:creator>
 <guid isPermaLink="false">comment 1208579 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/keeping-correctly-filled-data-when-validating-html-form-php#comment-1208531</link>
    <description> &lt;p&gt;The question here is if the browser actually sends the file &quot;location&quot; to the server. I imagine that for security reasons, it will not, but i could be wrong.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Thu, 12 Oct 2006 12:03:17 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1208531 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/keeping-correctly-filled-data-when-validating-html-form-php#comment-1208528</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: 3.4 Interpretation of other attributes&lt;/p&gt;
&lt;p&gt;   The VALUE attribute might be used with  tags for a&lt;br /&gt;
   default file name. This use is probably platform dependent.  It might&lt;br /&gt;
   be useful, however, in sequences of more than one transaction, e.g.,&lt;br /&gt;
   to avoid having the user prompted for the same file name over and&lt;br /&gt;
   over again.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Source: &lt;a href=&quot;http://www.ietf.org/rfc/rfc1867.txt&quot; class=&quot;bb-url&quot;&gt;http://www.ietf.org/rfc/rfc1867.txt&lt;/a&gt;&lt;/strong&gt;
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Two things:&lt;/p&gt;
&lt;p&gt;1.&lt;br /&gt;
RFC was written in 1995. I can&#039;t find a more updated version. Which means either current browsers don&#039;t like to handle it, or there is a more recent version that I don&#039;t know about.&lt;/p&gt;
&lt;p&gt;2.&lt;br /&gt;
Despite what the RFC says, I could not get PHP to &quot;keep&quot; the value inside the file input box. A possible workaround, depending on your requirements, is to keep the variable in sessions and output the filename above/below/beside the input box.&lt;/p&gt;
&lt;p&gt;If someone knows a better way :light: , by all means please share! Thanks&lt;/p&gt;
 </description>
     <pubDate>Thu, 12 Oct 2006 10:01:39 +0000</pubDate>
 <dc:creator>sol90</dc:creator>
 <guid isPermaLink="false">comment 1208528 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
