Skip to content

[bug]: Uploaded media immediatly vanishes (RangeError: Position -1 out of range) #4051

@OfficialLambdax

Description

@OfficialLambdax

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When i upload a image (jpg) to a issue it will immediatly vanish. I cannot locate any sort of error in any container log, all i see is
172.30.0.11:52278 - "POST /api/workspaces/test-plane/file-assets/ HTTP/1.0" 201 which indicates a success

Looking into the browser console reveals the following error
Upload error: RangeError: Position -1 out of range

I could confirm that the image was actually uploaded but it will not be shown in a issue or a comment of the issue, neither as a image box. It appears as if the image was never uploaded. Even after a full website reload or plane restart the issue persists.

.env files looks like this
vars.env.txt

Steps to reproduce

  1. Follow the instructions @ https://github.com/makeplane/plane/blob/preview/deploy/selfhost/README.md
  2. Add the network ip of that machine inside the .env file
  3. Install and Start the plane
  4. Connect to the plane from a remote machine (same network)
  5. Create an issue and try uploading any media

This issue is also present when i connect to the plane from localhost

Environment

Production

Browser

None

Version

Self-hosted

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions