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
#3
Actually i found it myself, i had to put it like this in order for pyhton to be able to send the file send_from_directory( filepath, filename) Problem now is that if my filanme has greek letters iwhtin i still get bad request. Why is that?
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Flask, send_from_directory not working : solved SpongeB0B 2 7,502 Jan-26-2021, 07:02 AM
Last Post: SpongeB0B
  Serving mixed filenames with send_from_directory() errors out. nikos 0 1,895 Sep-20-2018, 03:11 AM
Last Post: nikos
  Django serve list-file foralobo 4 4,383 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