How to set up a URL that I can upload files to server using HTTP post requests?

I have written an android app that uploads files using http post requests (multipart form). I have tested the app using and the files do seem to be “uploading”.

Now what I want to do is create a url (preferable serverip/upload) which my http post requests will be sent to. The server needs to accept the requests and save the files into a specified folder.

I am very new to this stuff, so some form of help would be very much appreciated.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You set up a Webpage that you can upload files from clients device to your server using HTTP post requests?

Here is an example of a post request:

It just identical to GET request but the GET and POST are just the methods being used to send the data.

POST request method requests that a web server accept and store the data enclosed in the body of the request message. It is often used when uploading a file or when submitting a completed web form.

Also Its best to work on Server Side aspect before the Client Side aspect… Server will be how it functions… Client side is more about how it looks and tools to use.