Skip to content

Demonstration of how to upload images from the ImagePicker, using a node backend to upload to S3

Notifications You must be signed in to change notification settings

expo/image-upload-example

Repository files navigation

Image upload with Expo API Routes

This is an Expo Router project to demonstrate choosing media from the device and uploading it to a server.

  • Pick an image or video with ImagePicker.
  • Upload the media with built-in fetch and FormData APIs.
  • Use Expo Router API routes to handle the upload on the server. This can be deployed to hosting providers by following the API routes deployment guide.
  • Save the file using a pseudo-database with Node.js fs and path modules. In production, you'd use a real database like MongoDB or PostgreSQL.

Get started

  1. Install dependencies

    npm install
  2. Start the app

     npx expo start

You can run the app on iOS, Android, and the web:

You can start developing by editing the files inside the app directory. This project uses file-based routing.

Learn more

To learn more about developing your project with Expo, look at the following resources:

Join the community

Join our community of developers creating universal apps.

About

Demonstration of how to upload images from the ImagePicker, using a node backend to upload to S3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •