jaydenseric / graphql-upload

Middleware and an Upload scalar to add support for GraphQL multipart requests (file uploads via queries and mutations) to various Node.js GraphQL servers.
https://npm.im/graphql-upload
MIT License
1.43k stars 131 forks source link

issue with video upload #288

Closed sushilbansal closed 2 years ago

sushilbansal commented 2 years ago

Image upload works fine from both web and mobile. Video upload works fine from mobile but fails on web.

Demo link: https://www.tryhelpline.com (check the network/console tab when you upload a video)

Repo for backend: https://github.com/sushilbansal/TempSpeakPrepServer Repo for frontend: https://github.com/sushilbansal/TempSpeakPrepNext

Please let me know if you need any other info on my end. Thanks a lot :)

jaydenseric commented 2 years ago

There is a net::ERR_FAILED 413, and HTTP status code 413 "Payload Too Large" indicates your server (e.g. nginx) has too small request/file upload limits configured to upload a video which is probably larger than other kinds of files you've tried. Your server config should be looser that the graphql-upload configured limits so that graphql-upload can do a nicer GraphQL response with relevant errors.

sushilbansal commented 2 years ago

Thanks for helping out @jaydenseric . Really appreciate that; it helped me in narrowing down the issue and eventually resolving it. Have a nice day.