0

My application consists of a UI web server and an application web server, both of them communicates through a message bus.

now I want to let user upload a file through their web browser, the problem is, user's browser is connecting UI web server, but I want to the file is finally uploaded to application web server.

How can I do this? Can I redirect all http upload requests to application server? Is there any example I can follow? thank you

zx_wing
  • 1,918
  • 3
  • 26
  • 39

1 Answers1

1

You can do this, by just changing the POST location of the <form's action= attribute to the script you want to accept the file on the appropriate url location. The location you post to must be accessible to the user to be able to POST to.

The other option is to post it to your UI web server, and from your UI web server, send it to the application web server.

e.g.

<form action="http://other-server.example.com" method="POST">

See also:

Community
  • 1
  • 1
David d C e Freitas
  • 7,481
  • 4
  • 58
  • 67