parse-community / parse-community/parse-server
File uploading works only with /parse in serverURL ('http://localhost:1337/parse')
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 21.4k
- Forks
- 4.8k
- Avg merge
- 7h 45m
- Merged PRs (30d)
- 11
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest version of Parse Server.
Issue Description
I can use a files uploading feature without errors (error: {"error":"Unexpected token - in JSON at position 0"}) only if I set '/parse' as a mount point in server's config:
mountPath: /parse
serverURL: http://localhost:1337/parse
publicServerURL: http://localhost:1337/parse
So Is it critical requirement to use '/parse' as a mount point? Or there is a way to escape such point and have URLs without /parse?
Steps to reproduce
Try to remove /parse
Actual Outcome
Expected Outcome
Environment
Server
- Parse Server version:
6.0.0 - Operating system:
Linux Mint 20.2 Cinnamon and docker - Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
local
Database
- System (MongoDB or Postgres):
MongoDB - Database version:
mongo:4 - Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
local
Client
- SDK (iOS, Android, JavaScript, PHP, Unity, etc):
javascript - SDK version:
@types/parse": "^2.18.13
Logs
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is identified. Start by reproducing file uploads with mountPath, serverURL, and publicServerURL both using and omitting /parse, then trace the server's file-upload route and the reported JSON parsing error. Done means uploads work and produce correct URLs without requiring /parse, or the configuration requirement is documented clearly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100