yarn add jscord-storage
import { uploadFromFile, uploadFromURL } from 'jscord-storage';
const testUploadFromURL = async () => {
const response = await uploadFromURL(
'test.jpg',
'https://cdn.discordapp.com/attachments/858938620425404426/1076560199218892902/waifu-animemoeus.jpg'
);
console.log(response);
};
const testUploadFromFile = async () => {
const response = await uploadFromFile('./test.js');
console.log(response);
};
testUploadFromURL();
testUploadFromFile();
- Max upload size limit is 25MB 🥳
url
vsproxy_url
. Click here for detail.proxy_url
. Click here for detail.- Attachments URL. Click here for detail.
- I don't know if this will work, but I think if the server gets a boost, we can increase the upload limit up to 50 MB or 100MB.
- https://support.discord.com/hc/en-us/articles/360028038352-Server-Boosting-FAQ-
- Discord Server https://discord.gg/kZuWeKzgkq