This folder contains examples demonstrating how to use the WL Upload library.
-
Install dependencies:
pnpm install
-
Start the development server:
pnpm dev
-
Open your browser and navigate to
http://localhost:3000
This example demonstrates:
- Multiple file upload
- Progress tracking
- Pause/Resume functionality
- Error handling
- File status display
- TypeScript integration
The main example is located in src/main.ts and demonstrates:
- Initializing WL Upload with configuration
- Handling file selection
- Managing upload lifecycle
- Progress monitoring
- Error handling
The example uses a mock API endpoint (https://httpbin.org/post) for demonstration purposes. In a real application, you would configure the endpoint to point to your actual upload server.
To build the example for production:
pnpm build