Skip to content

[Bug]: File uploads fine, it's GET that is the problem #1019

Open
@marcthenarc

Description

Where is the problem occurring?

I encountered the problem while interacting with the server (Backend)

What browsers are you seeing the problem on?

Firefox, Microsoft Edge

Current behaviour

Currently, upload works fine. A newly upload is located in /private and matches the directory association in the attachment table in Postgres. However, it's the reading back that is faulty.

The request: http://raspberrypi/attachments/1438212723203638303/download/thumbnails/cover-256.png.
Obviously, there is no actual path that resembles this request as attachments are located in the top private/ directory. I suspect that the server uses some for of mod_rewrite to extract the path as parameters, fetch the database for the real path, then push it back to the browser.
The rewrite seems to fail and takes the path literally.

Desired behaviour

Would like to see the actual attachment I sent.

Steps to reproduce

I'm using the attachment button on the card and upload a file from my disk. Then nothing is seen on the card. Running the same step with the inspector show this error.

Image

This is to prove that uploading images is possible, here are two successful attempts at uploading.

Image

Their location in the database:

Image

Other information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions