How to upload an image from React Native into MySQL using PHP? I have used the React Native image picker to choose the image but how can I upload it to MySQL using PHP?
1 Answer
The answer to your question consists of two parts:
Part one: (client-side)
For the mobile part (React native):
You could use this library
OR following this article that mentions a step-by-step image uploading:
Uploading Images From React Native To Your Server
Now it comes to the second part:
Part two: (server-side)
You should allow your php code to receive images from the form data submitted
You could follow the following helpful article : Upload Image to Database and Server using HTML,PHP and MySQL
And this question is wonderful too.