A
A
Abc Edc2015-01-18 20:09:30
PHP
Abc Edc, 2015-01-18 20:09:30

Are there really working Angular modules for uploading files to a php server?

And you can immediately link please, and I myself have an Angular client, this is a Phonegap application, so it does not lie on the server, maybe this is also a bug, because I found only two examples of them, not one of them did not answer anything from the server with repos

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-01-18
@gleber1

in the case of phonegap out of the box, you don't have access to the file system. You have essentially only two options:
1) if you have support for Android < 4.0 then only https://github.com/apache/cordova-plugin-file-transfer
2) If only Android 4.0+ is possible then the plugin File. and in JS you create blobs, push this case into FormData and send it with the $http service. There are examples on the net. I can put my wrapper service for $http on gist a bit later.
I also recommend looking at the ngCordova module.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question