Skip to content

bhavesh-ram/SFTP_Uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SFTP File Uploader

This project is a simple SFTP file uploader built with React for the frontend and Node.js for the backend. It allows users to upload files to a specified SFTP server.

Backend

The backend is built with Node.js and Express. It uses the ssh2-sftp-client package to handle SFTP connections and file transfers. The endpoint for file uploads is /upload, which accepts a POST request with the SFTP server details and the files to be uploaded.

The server details required are:

  • host: The hostname or IP address of the SFTP server.
  • port: The port number of the SFTP server (default is 22).
  • username: The username for the SFTP server.
  • password: The password for the SFTP server.

The files are uploaded to the /media_source_uploads/ directory on the SFTP server.

Frontend

The frontend is built with React. It provides a form for users to enter the SFTP server details and select the files to be uploaded. The form data is sent to the backend when the form is submitted.

The frontend also supports dark mode, which can be toggled on and off. The dark mode setting is saved in local storage, so it persists across page reloads.

Running the Project

To run the project, you need to have Node.js and npm installed. Then, you can follow these steps:

  1. Clone the repository.
  2. Install the dependencies for the backend and frontend with npm install.
  3. Start the backend server with node backend/index.js.
  4. Start the frontend server with npm run dev in the frontend directory.
  5. Open a web browser and navigate to http://localhost:5173 to use the application.

Please note that you need to have an SFTP server available to test the file upload functionality.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors