-
Notifications
You must be signed in to change notification settings - Fork 731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uploading files with apollo #3408
Comments
Hi there @eugeneekus. Can you try setting the Whenever someone has questions about file uploads, I am obligated to say: |
For some reason when I do it like this (use file in input and in , files:[file]) responce is 403 all the time, app tries to refresh token and retry but 403 again and again. Any ideas? Thank you for help!
|
It looks like changing the The 403 is a "Forbidden" status code, indicating that your server is not accepting the request for some reason. That is something you need to resolve with your backend. Perhaps your request authentication is invalid or your server isn't set up to receive GraphQL file uploads properly? I don't think there is much more for us to assist you with here, since the request is being properly sent now. If you think this is still an Apollo iOS issue, let us know why and we can re-open this issue. |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better. |
Summary
Good morning, I've some issues with file uploading using Apollo
Version
0.53
Steps to reproduce the behavior
I have mutation with attachment parameter which is Upload. I set it as GraphQlFile. Also I created extension to make encodable GraphQLFile. I get this error in that case.
Another thing that I tried was using .upload method, didn't get any errors but my server expected attachment file inside bill input and didn't get it. Can you pls help me? Thank you
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: