flaskfilemanager icon indicating copy to clipboard operation
flaskfilemanager copied to clipboard

error in download function

Open flynn1973 opened this issue 2 years ago • 0 comments

when trying to download a file the following error comes up...

Exception caught: 'Request' object has no attribute 'is_xhr'
Traceback (most recent call last):
  File "/opt/freeware/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/freeware/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/opt/freeware/lib/python3.7/site-packages/flaskfilemanager/filemanager.py", line 201, in connector
    if request.is_xhr:
AttributeError: 'Request' object has no attribute 'is_xhr'

seems the request.is_xhr method has been deprecated & removed from werkzeug...

flynn1973 avatar May 11 '23 12:05 flynn1973