Re: Bug in handling POST then sending a file back

2024-01-08 Thread Saint Michael
This is for an API, so no browsers are or will be involved. So, I should print binary information from my LUA script? A second question, can I offload receiving a very large zip file to NGINX? I just need to know in my LUA script when it has fully arrived and the name assigned to it. Many thanks

Re: Bug in handling POST then sending a file back

2024-01-08 Thread Maxim Dounin
Hello! On Sun, Jan 07, 2024 at 09:41:33PM -0500, Saint Michael wrote: > I am using openresty and nginx. > I send a file to the server, which is a POST operation. Then the > server processes the file and needs to send back a different file. I > try to send a file with

Bug in handling POST then sending a file back

2024-01-07 Thread Saint Michael
I am using openresty and nginx. I send a file to the server, which is a POST operation. Then the server processes the file and needs to send back a different file. I try to send a file with ng.exec("/static/file_name") and I get error 405 Not Allowed. But if I do a 302 redirect, it works. I