I have mounted one of my buckets to my server, I am able to access and write files to it, but now I wish to play files. I have written small api that returns static file from my mounted path of s3 bucket in my server
def get_file(path):
if not path.startswith('/'):
path = '/' + path
print "=======/file==== path : ", path
if os.path.exists(path):
print("true")
return static_file(path, root="/")
return static_file("404.mp4", root="/")
But it is not playing, it is giving 500 error in console? please suggest alternatives for this. any help would be appreciated.