Guardian Cloud File Uploader

Made With ❤️ by Guardian

0%

Result:


Total Files

Total Size

About

With our global CDN, you can upload your files from anywhere in the world, enjoying exceptional speed and reliability. Our cutting-edge technology ensures your files are delivered swiftly and securely. Please note that the maximum file size limit for uploads is 100 MB per file, allowing for efficient management and optimal performance of our services.

Website Donation

Example Code

upload.sh
1# Upload file ke Guardian Cloud
2curl -X POST "https://your-domain/upload" \
3 -F "file=@image.png"
4
5# Response:
6{ "status": true,
7 "data": { "url": "https://your-domain/file/ab12cd34.png" } }
upload.js
1import axios from 'axios';
2import fs from 'fs';
3import FormData from 'form-data';
4
5async function uploadToCDN(filePath) {
6 const formData = new FormData();
7 formData.append('file', fs.createReadStream(filePath));
8
9 const response = await axios.post('https://your-domain/upload', formData, {
10 headers: { ...formData.getHeaders() }
11 });
12return response.data.data.url; // ".../file/ab12cd34.png"
13}
14
15// Example usage:
16uploadToCDN('/path/to/your/file.jpg');
upload.py
1import requests
2
3def upload_to_cdn(file_path):
4 with open(file_path, 'rb') as f:
5 files = { 'file': f }
6 resp = requests.post('https://your-domain/upload', files=files)
7 return resp.json()['data']['url']
8
9# Example usage:
10print(upload_to_cdn('/path/to/your/file.jpg'))

Support Our Project ❤️

If you like Guardian Cloud and want to support further development, consider donating below!

Keep Guardian Cloud free & fast!