title: Django: Submit only the file path for a file selected from a template file chooser
body: <p>I am fairly new to Django. I've created a simple template page to test a service I'm writing.
  The service does two things - accepts a file through POST, and accepts a string path to the file through POST. This is more of a template question.</p>
  
  <p>I've figured out how to send the file content itself, but sending the file path WITHOUT the file data from the template page is something I haven't been able to wrap my mind around. The operation of the template page's file path submission should be the same as the file submission: the user picks a file and hits submit, but only the text path should be submitted, not the file data. </p>
  
  <p>Any help is appreciated!</p>
  
  <pre><code>&lt;h1&gt;File Upload&lt;/h1&gt;
  &lt;form action="upload/file/" method="post" enctype="multipart/form-data"&gt;
  &lt;p&gt;{{ form.non_field_errors }}&lt;/p&gt;
  &lt;p&gt;{{ form.docfile.label_tag }} {{ form.docfile.help_text }}&lt;/p&gt;
  &lt;p&gt;
  {{ form.docfile.errors }}
  {{ form.docfile }}
  &lt;p&gt;&lt;input type="submit" value="Upload" /&gt;
  &lt;/form&gt;
  &lt;br&gt;
  &lt;h1&gt;Path Upload&lt;/h1&gt;
  &lt;form action="upload/path/" method="post" enctype="application/x-www-form-urlencoded"&gt;
  &lt;p&gt;{{ form.non_field_errors }}&lt;/p&gt;
  &lt;p&gt;{{ form.docfile.label_tag }} {{ form.docfile.help_text }}&lt;/p&gt;
  &lt;p&gt;
  {{ form.docfile.errors }}
  {{ form.docfile }}
  &lt;p&gt;&lt;input type="submit" value="Upload" /&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And if anyone wants to see if, the forms.py I'm using.</p>
  
  <pre><code>from django import forms
  
  class UploadFileForm(forms.Form):
  docfile = forms.FileField(
      label='Select a file',
      help_text='max. 42 megabytes')
  </code></pre>