Divya D Dev
Divya D Dev

Reputation: 51

Angular 2 Upload file to FTP server

I am quite new to this technology. I need to know how to upload a file to an FTP server using angular 2. Any code snippets? Any tutorial pages? I have searched exhaustively, but I dont have a working, good example to try. Thanks in advance. Please help.

Upvotes: 4

Views: 9213

Answers (2)

Ankit Gupta
Ankit Gupta

Reputation: 134

direct FPT call is not supported JS, what you can do here

  1. from (Javascript or angular) to (C# or node or any backend) using file chunks
  2. from the backend you can call the FTP server (https://www.c-sharpcorner.com/UploadFile/0d5b44/ftp-using-C-Sharp-net/)

In above link you can see example of C# to FTP server

Upvotes: 0

AngularChef
AngularChef

Reputation: 14087

AFAIK, Angular 2 doesn't offer a specific solution for uploading files.

But Angular is just JavaScript, so your question really is "how to upload files in JavaScript".

You have two main options:

Upvotes: 1

Related Questions