Filesharing / README.md
nikhilyadavtemp1's picture
feat: add CLI upload support via curl
8fc4b59
|
Raw History Blame Contribute Delete
1.08 kB
---
title: NexusShare
emoji: 🚀
colorFrom: indigo
colorTo: blue
sdk: docker
app_port: 7860
pinned: false
---
# NexusShare - Advanced File Sharing API
This is a high-performance, universal file sharing application designed for Hugging Face Spaces.
## Features
- **FastAPI Backend:** High performance and asynchronous.
- **Modern UI:** Glassmorphism dark mode with responsive design.
- **Drag & Drop:** Easy file uploading.
- **Progress Tracking:** Real-time upload progress bars.
- **Universal Support:** Share any file type.
- **API Access:** Simple endpoints for programmatic access.
## Deployment
This project is ready for Hugging Face Spaces using the provided `Dockerfile`.
The app runs on port `7860`.
## CLI Usage (Terminal)
You can upload files directly from your terminal using `curl`:
```bash
# Basic upload
curl -F "files=@yourfile.ext" https://ttnikal-filesharing.hf.space/upload
# Upload to your private web session (get User ID from browser/inspect)
curl -H "X-User-Id: your_user_id" -F "files=@yourfile.ext" https://ttnikal-filesharing.hf.space/upload
```