Coder Social home page Coder Social logo

Comments (11)

Ngash01 avatar Ngash01 commented on August 16, 2024 3

Filetype is set to blob and I tried uploading a PNG image. Not sure if this is a bug, or just wrong config on my end for localhost.

image

I actually had the exact same issue. If it occurs to you it's most probably due to a typo in your core.ts file. Mine was quite simple the maxFileCount object was set to a String instead of a Number. This is what I mean:
ImageUploader: f({image: {maxFileCount: "1"}}) Instead of ImageUploader: f({image: { maxFileCount: 1}})

from uploadthing.

VincentAudette avatar VincentAudette commented on August 16, 2024 2

I had the same error make sure you have your api exposed. And I was missing the environment variables: UPLOADTHING_SECRET and UPLOADTHING_APP_ID

from uploadthing.

regardt-nel avatar regardt-nel commented on August 16, 2024

This error disappears when I set the file permission to allow only images, and subsequently upload a PNG image file on localhost.

The moment I deployed to https://uploadtest-theta.vercel.app/ I got the same error.

from uploadthing.

markflorkowski avatar markflorkowski commented on August 16, 2024

blob requires content-type to be application/octet-stream -- this may be a bug, as the field should probably coerce all content-types to application/octet-stream

from uploadthing.

quinm0 avatar quinm0 commented on August 16, 2024

I'm getting a similar issue, I have a pretty basic setup and no file type limitations or size limitations. Not sure what this is about.

from uploadthing.

quinm0 avatar quinm0 commented on August 16, 2024

Here's my backend error

- error Error [TypeError]: resolver is not a function
    at /homedir/upload-thing/node_modules/next/dist/server/api-utils/node.js:463:16

from uploadthing.

markflorkowski avatar markflorkowski commented on August 16, 2024

@KyleMoran138 Can you share what your router definition looks like?

from uploadthing.

t3dotgg avatar t3dotgg commented on August 16, 2024

Assuming this was missing env variables. Next release will have better errors for that. Re-open if you are able to provide a public repro

from uploadthing.

JuanDa14 avatar JuanDa14 commented on August 16, 2024

Filetype is set to blob and I tried uploading a PNG image. Not sure if this is a bug, or just wrong config on my end for localhost.

image

I get the same error when I want to upload a pdf, did you solve it?

from uploadthing.

markflorkowski avatar markflorkowski commented on August 16, 2024

I get the same error when I want to upload a pdf, did you solve it?

Can you confirm which version of Uploadthing you are using, and share what your router config looks like?

from uploadthing.

astro-jets avatar astro-jets commented on August 16, 2024

Im facing the same issue. When I upload files that are present on the server everything works fine but when I try to upload files that are not on the server I get that nasty error and I dont know how to solve it.

from uploadthing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.