parse-community / parse-community/parse-server

Incorrect working of maxUploadSize option

Open
#8,224 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:docs
Dominant language
JavaScript
Stars
21.4k
Forks
4.8k
Avg merge
7h 45m
Merged PRs (30d)
11

Description

New Issue Checklist
Issue Description

There is incorrect working of maxUploadSize Parse Server option. I've set up the option to '10mb', but I can't upload a file of, for example, 9 189 079 bytes — I've got an error "request entity too large". The correct loading is possible only when I set up the option to '12mb'.

Steps to reproduce

Just try to load a file with size of ≈ 9.2 MB.

Actual Outcome
Expected Outcome
Environment

Server

  • Parse Server version: 5.2.7
  • Operating system: macOS 10.15.7
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 6.0.1
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): local

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): JS
  • SDK version: 3.4.4
Logs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the upload using Parse Server 5.2.7 with maxUploadSize set to 10mb and a file of about 9.2 MB, then trace how the option is applied to request size limits. Done means the configured 10mb limit accepts the reported file size consistently, with the behavior covered by an appropriate regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.