-
-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: File uploads fine, it's GET that is the problem #1019
Comments
Hi! I just re-checked this using the exact same domain, and wasn’t able to get the 404 error. The issue might be due to a lack of read permissions, but that’s just a guess. You can try logging the error itself by adding Btw, it looks like we should add more error logging in cases like this. This would make it much easier to identify issues. |
Hi, and thanks. I wasn't expecting people to try the link, that's why I added markup quotations to show it as a command and to demonstrate the steps I went through: it's on my home network (and I thought raspberrypi without a top-level like .com, .org would be a dead giveaway :-) ) I'll try this later this evening. Just posting this so that people don't bang their heads on 404s again. |
:D I just thought that might be the case since I've never tried using a host without a top-level domain (except for |
Oops, you're right, it should be line 54. Based on the logs from your console, you're using port 1337. This means it should also be included in the |
Yup, called the image directly with :1337 and it worked. I didn't choose 1337. It was part of the install process (looking under stacks of papers) somewhere ... |
It's just a configuration, not a bug. You can either add a proxy server to forward requests to port 1337 or run Planka on port 80 by |
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.
This is to prove that uploading images is possible, here are two successful attempts at uploading.
Their location in the database:
Other information
No response
The text was updated successfully, but these errors were encountered: