orchidsoftware/platform

No error message for 403 attachment exception

Open

#2,927 opened on Nov 27, 2024

View on GitHub
 (1 comment) (0 reactions) (1 assignee)PHP (629 forks)batch import
Errorshelp wanted

Repository metrics

Stars
 (4,045 stars)
PR merge metrics
 (Avg merge 3d 18h) (4 merged PRs in 30d)

Description

Describe the bug If the user doesn't have permission to upload files ("platform.systems.attachment":"1"), the uploading fails with no error message.

To Reproduce Steps to reproduce the behavior:

  1. Create any field with attachment (i.e. Cropper)
  2. Remove system.attachment permission from the user
  3. Try to upload picture and crop

Expected behavior There should be error message on the frontend.

Contributor guide