This project was created to make it easier, faster, and more efficient to share files between a mobile device and a computer, without relying on third-party apps.
There are already several ways to transfer files, such as messaging apps like WhatsApp — but these come with real limitations. For one, they often restrict file size or type. On top of that, files tend to arrive on the computer in a disorganized way, forcing users to spend extra time sorting them out. And finally, there's the privacy concern that comes with depending on external services.
The goal of this project is to build a backend that interacts directly with the server's file system, allowing files and folders to be managed in a structured way. This backend exposes a REST API, which will later be consumed by a React.js frontend that provides a clean, user-friendly interface for uploading, organizing, and managing files.
You can find more information about this project, such as the architecture, error management and file management used it's in my LinkedIn posts Linkedin
https://github.com/Litardo-Jardy/Uploader-Browser-Rust.git
cargo build
BASE_DIR=la-ruta-sobre-la-que-se-va-a-trabajar
SECRET=tu-firma-para-el-token
USERR=tu-usuario-para-login
PASS=tu-contraseña-para-login
cargo run
curl -s -X POST http://localhost:3000/login \
-H "Content-Type: application/json" \
-d '{"user": "", "pass": ""}' curl -v http://localhost:3000/list_folders?path="*" \
-H "Authorization: Bearer " curl -v http://localhost:3000/list_files?path="*" \
-H "Authorization: Bearer " curl -X POST http://localhost:3000/delete_folder \
-H "Content-Type: application/json" \
-H "Authorization: Bearer " \
-d '{"path": ""}' curl -X POST http://localhost:3000/delete_file \
-H "Content-Type: application/json" \
-H "Authorization: Bearer " \
-d '{"path": ""}' curl -v -X POST http://localhost:3000/edit_element \
-H "Content-Type: application/json" \
-H "Authorization: Bearer " \
-d '{"path": "", "new_path": ""}' curl -X POST http://localhost:3000/create_folder \
-H "Content-Type: application/json" \
-H "Authorization: Bearer " \
-d '{"path": ""}' curl -X POST http://localhost:3000/upload_file \
-H "Authorization: Bearer " \
-F "name=" \
-F "route=" \
-F "file=@/"- Jardy Litardo Litardo-Jardy