Free Temporary File Sharing Service - Fast & Secure File Transfer
Upload files (up to 100MB) and get temporary download links with global CDN acceleration
✨ NEW: Generate QR codes for easy mobile downloads!
Note: Anonymous uploads are automatically deleted after 7 days to protect your privacy
Drag & Drop your file here or click Choose File
How to Use - Multiple File Upload Methods
tfLink provides various convenient file upload methods to meet different user needs. Whether you're a developer, designer, or regular user, you'll find a suitable upload method.
Web Upload (Recommended)
The simplest way: directly drag and drop files to the area above or click the Choose File button. Get download links immediately after upload.
🆕 QR Code Feature: After uploading, click the "QRCode" button to generate a QR code for easy mobile downloads. Perfect for sharing files between devices!
Command Line Upload (CLI)
Perfect for developers and technical users, supports script automation and batch processing.
Replace placeholders like /path/to/your/file.ext
, YOUR_USER_ID
, YOUR_AUTH_TOKEN
with your actual values.
Linux/macOS (curl):
Anonymous Upload:
curl -X POST -F "file=@/path/to/your/file.ext" https://tmpfile.link/api/upload
Authenticated Upload:
curl -X POST \
-H "X-User-Id: YOUR_USER_ID" \
-H "X-Auth-Token: YOUR_AUTH_TOKEN" \
-F "file=@/path/to/your/file.ext" \
https://tmpfile.link/api/upload
Windows (PowerShell):
(Note: Ensure file paths are correct for Windows, e.g., C:\path\to\your\file.ext
)
Anonymous Upload:
Invoke-RestMethod -Uri https://tmpfile.link/api/upload -Method Post -InFile C:\path\to\your\file.ext -ContentType multipart/form-data
Authenticated Upload:
$headers = @{
"X-User-Id" = "YOUR_USER_ID";
"X-Auth-Token" = "YOUR_AUTH_TOKEN"
}
Invoke-RestMethod -Uri https://tmpfile.link/api/upload -Method Post -InFile C:\path\to\your\file.ext -ContentType multipart/form-data -Headers $headers
API Documentation
Send a POST
request to /api/upload
with multipart/form-data
. Include the file in a field named file
.
For authenticated requests, include X-User-Id
and X-Auth-Token
headers.
The response will be JSON containing fileName
, downloadLink
, downloadLinkEncoded
, size
, type
, and uploadedTo
.
Example HTTP Request (Raw):
POST /api/upload HTTP/1.1
Host: tmpfile.link
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
# Optional headers for authentication:
# X-User-Id: YOUR_USER_ID
# X-Auth-Token: YOUR_AUTH_TOKEN
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="yourfile.txt"
Content-Type: text/plain
(content of your file here)
------WebKitFormBoundary7MA4YWxkTrZu0gW--
(Note: The boundary string will vary based on the client.)
Example JSON Response:
Anonymous upload example (files automatically deleted after 7 days):
{
"fileName": "example.png",
"downloadLink": "https://d.tmpfile.link/public/2025-07-31/a1b2c3d4-e5f6-7890-abcd-ef1234567890/example.png",
"downloadLinkEncoded": "https://d.tmpfile.link/public%2F2025-07-31%2Fa1b2c3d4-e5f6-7890-abcd-ef1234567890%2Fexample.png",
"size": 102400,
"type": "image/png",
"uploadedTo": "public"
}
Authenticated user upload example:
{
"fileName": "document.pdf",
"downloadLink": "https://d.tmpfile.link/users/YOUR_USER_ID/2025-07-31/uuid-example/document.pdf",
"downloadLinkEncoded": "https://d.tmpfile.link/users%2FYOUR_USER_ID%2F2025-07-31%2Fuuid-example%2Fdocument.pdf",
"size": 2048000,
"type": "application/pdf",
"uploadedTo": "user: YOUR_USER_ID"
}