Replies: 2 comments
-
I think you'll need to use Remix's |
Beta Was this translation helpful? Give feedback.
0 replies
-
You should not upload directly to your oxygen worker, you need to request form url to shopify.
const UPLOAD_CREATE = `#graphql
mutation stagedUploadsCreate($input: [StagedUploadInput!]!) {
stagedUploadsCreate(input: $input) {
stagedTargets {
resourceUrl
url
parameters {
name
value
}
}
userErrors {
field
message
}
}
}
`;
const FILE_CREATE = `#graphql
mutation fileCreate($files: [FileCreateInput!]!) {
fileCreate(files: $files) {
files {
fileStatus
alt
}
userErrors {
field
message
}
}
}
`; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm trying to create a form with a file upload input. I seem to be getting the following error
PayloadTooLargeError: request entity too large
, seems to be caused by body-parser? Is there a way to raise the limit, like you can with express? Any help would be appreciated. Thank you.Beta Was this translation helpful? Give feedback.
All reactions