Python Forum
Cannot serve file with send_from_directory
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot serve file with send_from_directory
#2
I came to realize that it was due to the filenames containing a mix of latin+greek cjaracters that gave this "Bad Request Error". I turned the filename only to Greek letters and now it doesn't produce this error, but also it does NOT send the file to the the users browser. Any idea why?
Reply


Messages In This Thread
RE: Cannot serve file with send_from_directory - by nikos - Sep-18-2018, 09:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Flask, send_from_directory not working : solved SpongeB0B 2 7,579 Jan-26-2021, 07:02 AM
Last Post: SpongeB0B
  Serving mixed filenames with send_from_directory() errors out. nikos 0 1,911 Sep-20-2018, 03:11 AM
Last Post: nikos
  Django serve list-file foralobo 4 4,429 Oct-03-2017, 03:48 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020