Report this

What is the reason for this report?

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

Posted on February 8, 2017

I have written an android app that uploads files using http post requests (multipart form). I have tested the app using requestbin.in 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.



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!

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.

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: www.mywebsite.com?myfile=profilepicture.png

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.