Closed juliesaia-vendora closed 3 weeks ago
I'll investigate this tomorrow. Currently installing xcode ios simulator and it's been downloading for hours now...
Hey,
Sorry for not getting back. This slipped my mind but was able to take a look today.
the first issue is cause Expo doesn't read exports condition by default (I hate that they still don't do this cause it's been available since forever lol). This is fixed by just flattening out the exports which I've done here: https://github.com/pingdotgg/uploadthing/pull/1013
The second issue is less fun... our implementation of resumability calls .slice()
here:
which is not gonna work since React Native doesn't have blobs. This has previously been fine since we've worked around it like this:
More info in the linked React Native issue from that comment...
Will tihnk on how to solve this
update: doesn't seem relatved to that but on our fastify backend not recognizing the RN blob format... continuing investigating nvm that is the culprit
okay linked PR seems to fix it - releasing some canary versions that you can use until it gets released on main
tysm for looking into it :)
just tried canary on minimal-ut-expo, seems like the upload is going through but the file is blank with no size afterward, not sure if im doing something wrong
what's the file key?
AtUXM04uzR1mkV6hTW9zLSAGlcaXVCkutpo5rTZ8JnFbgjHR
I'm trying a default image from my ios simulator
hmm i can repro this on deployed infra. wonder why it worked locally then...
@juliusmarminge
I'm running into the same issue - a fix here would be a lifesaver
Provide environment information
Describe the bug
Expo seems to be broken on v7. When running
examples/minimal-expo
:Unable to resolve "@uploadthing/mime-types/audio" from "node_modules/@uploadthing/shared/dist/index.cjs"
Easy fix is to replace
require(@uploadthing/mime-types/[package])
withrequire(@uploadthing/mime-types/dist/[package])
, but actually uploading a file gives:Error: XHR failed 400 undefined - {"error": "No file on request"}
Link to reproduction
https://stackblitz.com/github/pingdotgg/uploadthing/tree/main/examples/minimal-expo
To reproduce
bun install
bun ios
After patching above, upload a file
Additional information
No response
๐จโ๐งโ๐ฆ Contributing
Code of Conduct