Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. {% block style %}
  2. {{ dropzone.load_css() }}
  3. {{ dropzone.style('border: 2px dashed #0087F7; margin: 10%; min-height: 400px;') }}
  4. {% endblock %}
  5.  
  6. {% block scripts %}
  7. <script src="{{url_for('static', filename='jsfiles/dropzone.js')}}"></script>
  8. {% endblock %}
  9.  
  10. {{ dropzone.create(action=url_for('folder1.upload, id=user.id'))}}
  11. {{ dropzone.load_js() }}
  12. {{ dropzone.config() }}
  13.  
  14. @inspection.route('/users/<int:user__id>', methods=['GET', 'POST'])
  15. def upload(id):
  16. //Some Code
  17. if form.validate_on_submit() and 'photo' in request.files:
  18. for f in request.files.getlist('photo'):
  19. filename = secure_filename(f.filename)
  20. print(filename)
  21.  
  22. return render_template('folder/user_details.html.j2')
  23.  
  24. Cannot build url for endpoint folder1.upload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement