Skip to content

kjr-lh/capacitor-http-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Capacitor http test

This is an example capacitor app to demo using the http plugin to upload File and FormData objects

Setup

Run the server - this has two routes that allow files to be uploaded using files and form data. Files will be saved in server/uploads

cd server
npm i
npm run start

Run the app

cd app
npm i
npm run build
npx cap run android

Choose a file using the button in the app (you might need to add a file to the device, e.g. with the camera app) Use either of the upload buttons to upload the file, and see the console output from the server

The upload code is in app/src/js/capacitor-welcome.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published