简体   繁体   中英

React native image upload to MySQL using PHP

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM