thecheddarcheese

joined 8 months ago
[–] [email protected] 3 points 5 months ago

Because why not?

 

Hi, I have this function that is supposed to upload a file stream to another page:

async function getData() {
    const vocadata = await fetch('http://localhost:3000/upload/',
        {
            method: "POST",
            headers: {
                "Content-Type": "multipart/form-data",
            },
            body: data,
        });
    console.log(vocadata);
};

The problem is though, no matter what URL I enter in the first argument, it always posts the request to /. How can I fix this?

 

I'm running it on a 32-bit emulator, maybe that's the issue here? i don't know honestly

[–] [email protected] 2 points 8 months ago (1 children)

i have 70. how.

[–] [email protected] 31 points 8 months ago (4 children)

is that a quote from somewhere cause i swear it sounds familiar

[–] [email protected] 2 points 8 months ago (1 children)

why are you copy pasting the same comment

[–] [email protected] 3 points 8 months ago

I'm gen z, and I honestly couldn't care less about nikocado avocado either

[–] [email protected] 12 points 8 months ago* (last edited 8 months ago)

ah yes, my favorite dish. t-shirts.

[–] [email protected] 7 points 8 months ago

the other accounts bot like each other so that their comments go to the top

[–] [email protected] 1 points 8 months ago

to disable it you'd have to set active hours all the time though

[–] [email protected] 17 points 8 months ago (7 children)

Making dogs vegan still doesn't sound like a good idea to me tho

[–] [email protected] 8 points 8 months ago

I’d assume it’s mostly donations

view more: next ›