tezz995
By:
tezz995

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

February 8, 2017 199 views
Apache LAMP Stack Nginx PHP

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.

1 Answer

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.

Have another answer? Share your knowledge.