Global edge file storage
Global file storage with automatic CDN distribution. Upload files, images, and documents with built-in optimization, signed URLs for security, and instant global delivery via edge locations.
import { sylphx } from '@sylphx/sdk'
const { url } = await sylphx.storage.upload({
file: fileBuffer,
filename: 'profile.jpg',
contentType: 'image/jpeg',
})
console.log('Uploaded to:', url)const signedUrl = await sylphx.storage.getSignedUrl({
key: 'private/document.pdf',
expiresIn: 3600, // 1 hour
})
console.log('Download link:', signedUrl)Looking for more examples?
View on GitHub