-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
File upload issue with GraphQL #5935
Comments
@nathan-charles thanks for reporting. Do you mind to inspect the request in your web browser and share the headers and body that your react application is sending to the GraphQL API? |
Headers
Body
|
@Moumouls According to this that should be correct: https://github.com/jaydenseric/graphql-multipart-request-spec/blob/master/readme.md#multipart-form-field-structure This is just minimal example to demonstrate the problem but on my app it does have the file that is sent when i console log before posting |
@davimacedo i'm probably wrong but it seems that the content is empty We do not allow empty files ? if (!data || !data.length) {
throw new Parse.Error(
Parse.Error.FILE_SAVE_ERROR,
'Invalid file upload.'
);
} |
I think we have a bug here. I am trying to figure it out. I will keep you guys posted. |
These two PRs should fix the issue. |
Thanks! @davimacedo When will this be available on back4app? |
@nathan-charles as soon as we have a new release of Parse Server it should be also available at Back4App. |
Hi @davimacedo I just tested with the new release (3.8.0) on back4app for some reason i'm still getting an error. I also see this in the response headers "Error from cloudfront" not sure if this is parse server related or back4app issue. Thanks |
@nathan-charles do you mind to open a ticket at Back4App sending your app id so they guys there can investigate your case? Tks. |
hello @davimacedo , what version has this been fixed on parse-server? i, use 3.8.0-3.9.0 and still getting error for uploading file |
@aacassandra Please try with the latest version of Parse Server (4.6.10 and/or 5.0-beta) to see whether the still exists. If the issue still exists, please open a new issue and reference this issue. We do not look into issues in old versions that may have been already fixed in newer versions. |
Issue Description
I'm trying to upload a file from React to parse server using GraphQL but i'm getting the below response back.
Here is my React code
Environment Setup
The text was updated successfully, but these errors were encountered: