-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Unable save large file to S3 using Parse server #3532
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
Comments
Update: I have to use |
Probably a problem with the load balancer in front of parse-server or the |
@flovilmart can you point me to any resources that I can verify or change the maxUploadSize. I understand the the default max upload size is 20 MB, is that correct? |
The default should be 20Mb, you're right, the option is passed directly to express body parser: https://github.com/ParsePlatform/parse-server/blob/d5940b17b6914f04462420812aed9efe54a2b37f/src/Routers/FilesRouter.js#L22 |
In this case, can I just set my environment variable the same as how I set the variable such as |
That should be possible with "PARSE_SERVER_MAX_UPLOAD_SIZE" |
Still complaining "The data couldn’t be read because it isn’t in the correct format." using saveInBackground when the file size is just 2.8MB |
What is complaining? The client or the server? |
The output from the Xcode, also just found this on the log on ELB I think it may be the AWS that is setting the file size limit somewhere |
so that's on your elastic beanstalk configuration then: http://lmgtfy.com/?q=elastic+beanstalk+set+max+upload+size |
Now it works after setting the client_max_body_size to a larger value. See how you set the value, you can refer it here http://websistent.com/fix-client-intended-to-send-too-large-body-nginx-error/ |
@flovilmart could the default should be 20Mb file size be modified from the index.js file from the example parse server? |
You should set it in your configuration object |
I have the same issue but in Heroku which I think it uses Express. I set the server property. |
I tried to save to S3 bucket using Parse, and it can be saved correctly when the file is small, such as 864.2KB. However, when the file is large, say 5MB, it complaints with a message saying: "The data couldn’t be read because it isn’t in the correct format"
I'm using the following code to save the the video file to the S3
Besides, even when the small video file is indeed being saved to the S3, it contains an extension .bin instead of, for example .mp4. I wonder what's happening here
The url end up looking something like this
The text was updated successfully, but these errors were encountered: