parse-server
parse-server copied to clipboard
File uploading works only with /parse in serverURL ('http://localhost:1337/parse')
New Issue Checklist
- [x] I am not disclosing a vulnerability.
- [x] I am not just asking a question.
- [x] I have searched through existing issues.
- [x] 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
Thanks for opening this issue!
- 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.