title: Flask-Uploads gives me a no file selected error
body: <p>This app was working fine yesterday but now it has stopped. When I complete a form and click on submit I don't get redirected like I have been doing, now it just refreshes the page and in the file upload box it says 'No file chosen'.</p>
  
  <p>This is how I initialize the app..</p>
  
  <pre><code>from flask.ext.uploads import UploadSet, IMAGES, configure_uploads
  
  class Images(object):
      images = UploadSet('photos', IMAGES)
  
  def create_app(config_name):
      app = Flask(__name__)
      app.config.from_object(config[config_name])
      config[config_name].init_app(app)
  
      app.config['UPLOADS_DEFAULT_DEST'] = '/var/uploads'
      configure_uploads(app, (Images.images,))
  </code></pre>
  
  <p>My route is..</p>
  
  <pre><code>@listings.route('/make_job_listing/', methods=['GET', 'POST'])
  #@login_required
      def make_job_listing():
          form = JobForm()
          if form.validate_on_submit():
              filename = secure_filename(form.photo.data.filename)
              form.photo.data.save('uploads/' + filename)
              listing = Listing(title = form.title.data,
                    description   = form.description.data,
                    location      = form.location.data,
                    photo         = 'uploads/' + filename,
                    listing_type  = 'job')
          db.session.add(listing)
          try:
              db.session.commit()
          except:
              db.session.rollback()
           #   raise
         # finally:
          #    db.session.close()
          return render_template('listings/confirm_listing.html', listing=listing)
      return render_template('/listings/make_job_listing.html', form=form)
  </code></pre>
  
  <p>My Job form is..</p>
  
  <pre><code>class JobForm(Form):
      ''' Job form '''
      title = StringField('Enter a title ')
      description = TextAreaField('Enter a description')
  
      photo = FileField('image', validators=[
          FileRequired(),
          FileAllowed(Images.images, 'Images only!')])
      location = StringField("where's your nearest city?")
      submit = SubmitField('Submit')
  </code></pre>
  
  <p>My dir structure is</p>
  
  <pre><code>app/
  uploads/
  venv/
  manage.py
  </code></pre>
  
  <p>I am redirected to this after I click submit..
  <a href="https://i.stack.imgur.com/nKe8f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nKe8f.png" alt="enter image description here"></a></p>