Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ionic 3 file upload. #5

Closed
puneet-khanna opened this issue Nov 29, 2018 · 1 comment
Closed

ionic 3 file upload. #5

puneet-khanna opened this issue Nov 29, 2018 · 1 comment

Comments

@puneet-khanna
Copy link

https://ampersandacademy.com/tutorials/ionic-framework-3/upload-image-to-the-php-server-using-ionic-3-file-transfer-and-camera-plugin

Tried running the same code on my system using
ionic cordova run browser

the app opens in the browser but is unable to upload the image file to the php server after capturing throws an JS error

image

Files is not being sent to the php server once captured.. help please!

@bharathirajatut
Copy link
Owner

bharathirajatut commented Dec 13, 2018

The camera is native component. So try to install this app on your android phone using below command.

ionic cordova run android

If you don't know how to connect your phone to deploy apk, follow the below link.

https://ampersandacademy.com/tutorials/ionic-framework-version-2/deploy-application-on-the-android-phone-using-adb-command

It will work fine. And if you are using local server then your phone and local server must be connected in same network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants