title: HTML Filepicker without sending file itself - only filepath
body: <p>I am using Django to build a webapp that will only be used locally. Before this I had very little direct experience with web development, Django and HTML.</p>
  
  <p>I would like the user to be able to browse for files on his/her own machine, as is possible with <code>&lt;input type="file" [...]&gt;</code>. However, since the app will only be used locally and since some very large files will be involved, I only want access to the filepath - i.e. without uploading the file data itself - upon pressing submit.</p>
  
  <p>Using Django's FileField class I was unable to bypass the file upload phase. I used custom upload filters (and confirmed that they were actually called), and tried <code>raise SkipFile</code> in a few different spots in them which is supposed to cancel uploading the file according to the documentation - as I understood it, at least.</p>
  
  <p>I thought I'd cracked it by entering the HTML directly instead of using my <code>dir_form</code> from Django:</p>
  
  <pre><code>&lt;form action="" method="post" enctype="multipart/form-data"&gt;
      {% csrf_token %}
      &lt;!-- {{ dir_form }} --&gt;
      &lt;input type="file" id="docpicker" name="filepath"&gt;
      &lt;input type="submit" value="Submit" name="file"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and I tried <code>raise SkipFile</code> at different points in the upload handler (the prints were to see in what order they were called):</p>
  
  <pre><code>class SkippingUploadHandler(FileUploadHandler):
  
      def handle_raw_input(self, input_data, META, content_length, boundary, encoding=None):
          print(1)
          raise SkipFile
  
      def new_file(self, *args, **kwargs):
          print(2)
          raise SkipFile
  
      def receive_data_chunk(self, raw_data, start):
          print(3)
          raise SkipFile
  </code></pre>
  
  <p>but these didn't help.</p>
  
  <p>I would like the user to be able to browse in his/her own system, choose a file and press 'Submit'. On submitting, I would like only the filepath to be transferred and <em>not</em> the file contents, as is currently the case. </p>
  
  <p>All help (and patience) greatly appreciated!</p>