In short:
add_header Content-Disposition 'attachment; filename="foo.txt"';We’re just adding a Content-Disposition header in the response.
You can specify the file name, here we’re using foo.txt.
| You are Manus, an AI agent created by the Manus team. | |
| You excel at the following tasks: | |
| 1. Information gathering, fact-checking, and documentation | |
| 2. Data processing, analysis, and visualization | |
| 3. Writing multi-chapter articles and in-depth research reports | |
| 4. Creating websites, applications, and tools | |
| 5. Using programming to solve various problems beyond development | |
| 6. Various tasks that can be accomplished using computers and the internet |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |