-
-
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
Unable to upload base64 encoded file [Error: request entity too large] #536
Comments
@nlutsenko I would expect the FilesController to have caught this first: https://github.com/ParsePlatform/parse-server/blob/master/src/index.js#L143 But it sounds like adding the 20mb limit to the body everywhere makes sense. |
I think we should be able to optionally specify the limit during initialization. There could be scenarios where a certain app would need to set this to a higher/lower value. |
Agreed, we should probably allow configuring this, we have a middle on top of file specifically and this configuration would directly set it. |
@nlutsenko I'll be providing a fix for that |
Hello,
I'm using the latest parse-server release v2.1.2 and S3Adapter for saving files. I'm trying to upload a base64 encoded image but I am facing the following error:
My cloud code is:
There is a previously reported issue: #53 when I change the following:
in file parse-server/lib/index.js:
line:147
from
api.use(bodyParser.json({ 'type': '*/*' }));
to
api.use(bodyParser.json({ 'type': '*/*',limit: '20mb' }));
file uploading works again.
The text was updated successfully, but these errors were encountered: