Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

just want to ask if it is possible to upload files (images, docs, pdf, etc.) using angularjs without actually using php script, instead all file uploads will use angularjs or javascript codes?. With this method i will be able to lessen the server load. Thanks

share|improve this question
1  
Nope AngularJS can't upload files without server side. –  Rahil Wazir Jun 5 at 11:27

1 Answer 1

That is not possible.

AngularJS is solely a frontend framework. In order to upload something, you need to communicate with a server.

share|improve this answer
    
Patrick Reck is correct. Managing / uploading files it outside of the scope of Angular's functionality. You'll find that most front-end languages and frameworks (such as Javascript itself) don't have much support for file management. You'll need some server-side code in order to handle file uploads. You may find additional plugins/libraries such as ng-flow useful. Plugins such as these rely other other technologies such as the HTML5 file API to manage file transfers. –  Alex Johnson Jun 5 at 18:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.