parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

File uploading works only with /parse in serverURL ('http://localhost:1337/parse')

Open VKlapan opened this issue 3 years ago • 1 comments

New Issue Checklist

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

VKlapan avatar Apr 25 '23 08:04 VKlapan

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.

parse-github-assistant avatar Apr 25 '23 08:04 parse-github-assistant