title: Accessing temporary file from upload in django view
body: <p>Just as the title says, I want to know how to access the data from the temporary file stored by Django, when a file is uploaded, inside a view.</p>
  
  <p>I want to read the data uploaded values so I can make a progress bar. My methodology is to perform a jquery <code>getJSON</code> request:</p>
  
  <pre><code>function update_progress_info() {
          $progress.show();
          $.getJSON(progress_url, function(data, status){
              if (data) {
                  var progress = parseInt(data.uploaded) / parseInt(data.length);
                  var width = $progress.find('.progress-container').width()
                  var progress_width = width * progress;
                  $progress.find('.progress-bar').width(progress_width);
                  $progress.find('.progress-info').text('uploading ' + parseInt(progress*100) + '%');
              }
              window.setTimeout(update_progress_info, freq);
          });
      };
  </code></pre>
  
  <p>where <code>progress_url</code> is the view I have that handles the uploaded file data:</p>
  
  <pre><code># views.py (I don't know what to do here):
  def upload_progress(request):
      for line in UploadedFile.temporary_file_path
          response = (line)
      return response
  </code></pre>