0

I am building a Laravel-based web API. In the project, we want to upload image using post method to the API server directly via an Android/iOS app. How can we do it?

1 Answer 1

0

The server will take a POST request from clients with media file properly if you are posting a file with Content-Type as multipart/form-data.

See documentation on how you can accept/save files in laravel.

See this thread to see how you can post a multipart/form-data POST in android for reference.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.