#Bucket URL works for others but not for me
4 messages · Page 1 of 1 (latest)
const uploadFileFromURL = async (key, url) => {
try {
const response = await axios.get(url, { responseType: 'arraybuffer' });
const command = new PutObjectCommand({
Bucket: 'lol-quotes-audio',
Key: key,
Body: response.data,
ContentType: 'application/ogg',
});
await client.send(command);
console.log(`File ${key} uploaded successfully`);
} catch (err) {
console.error(`Error uploading file ${key}:`, err);
}
};
this is how im uploading
deleted the files and re-uploaded them and it seemed to work. My guess is that cloudflare caches by my location or something? am i right?