import api from '@/api/axios' export async function uploadFile(file, category = 'general') { const payload = new FormData() payload.append('file', file) payload.append('category', category) const { data } = await api.post('/files', payload, { headers: { 'Content-Type': 'multipart/form-data' }, }) return data } export async function getTemporaryFileUrl(uuid) { const { data } = await api.get(`/files/${uuid}/temporary-url`) return data } export async function deleteFile(uuid) { const { data } = await api.delete(`/files/${uuid}`) return data }