Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get request.files attribute after flask send_from_directory? #949

Open
dayyass opened this issue Jul 24, 2022 · 0 comments
Open

how to get request.files attribute after flask send_from_directory? #949

dayyass opened this issue Jul 24, 2022 · 0 comments

Comments

@dayyass
Copy link

dayyass commented Jul 24, 2022

I have a master/slave architecture with master and slave flask restful apps and I want to send file from slave node to master node to send it further to user (different node).

I used send_from_directory function to do it, but after applying that function on slave node, the request on master node doesn’t have files attribute, so can neither push it forward to user node nor save it in tmp folder and send it to user from file system with send_from_directory.

Could anyone help me with my problem?
I’ve spent several days for that without any success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant