Skip to content

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

@VKlapan

Description

@VKlapan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions