Easily allow your users to upload files to your application. Our secure API handles the file storage and provides a simple interface for your frontend.
POST /api/v1/files/upload/authid
try { const formData = new FormData(); formData.append('file', file); const response = await fetch('https://dolphinuploads.com/api/v1/files/upload/{authID}', { method: 'POST', body: formData }); const data = await response.json(); if (data.success) { console.log('File uploaded successfully:', data.fileUrl); } else { console.error('Error uploading file:', data.message); } } catch (error) { console.error('Error uploading file:', error); }
{ "id": "123456789", "url": "https://cdn.example.com/uploads/file.jpg", "size": 1024000, "type": "image/jpeg" }