-
Notifications
You must be signed in to change notification settings - Fork 422
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
Preview thumbnail of attached image file is not shown in UI #3386
Comments
Hello! |
Awesome! |
Hi @leplatrem , I am new to this system, can you please provide the list of steps to replicate the issue? :) |
Of course, I'm sorry, I'll try to give as much info as possible. First make sure you can run the project locally (check out the docs) but in brief it would be:
You can pick the memory backend to skip postgresql stuff. But you'll have to repeat the account creation on each restart. Now, we'll need the attachment plugin, it's installed by default in the docker container, but not when developping from sources:
Enable it in the # https://kinto.readthedocs.io/en/latest/configuration/settings.html
@@ -35,6 +35,7 @@
kinto.includes = kinto.plugins.default_bucket
kinto.plugins.admin
kinto.plugins.accounts
+ kinto_attachment
# kinto.plugins.history
# kinto.plugins.quotas
+
+kinto.attachment.base_url = http://localhost:9999/
+kinto.attachment.base_path = /tmp
In one terminal, you run a server to deliver the attachment files:
In another terminal, you serve the Kinto application:
Create the admin account:
Create a default collection to reproduce the bug:
(I give the commands to make it easier to replay) Now:
See https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP Hope you make it through all of this! Have fun investigating and hacking! |
Hi @leplatrem , Thank you for the setup steps! After I attached a image on the record, and click "edit the record", the screenshot above is what I saw. Just wondering why the view is so different with the one you attached for this issue? |
Can you check whether the attachments are enabled on the server? (I just opened this issue to limit confusion Kinto/kinto-admin#3426) |
The URL is correct but it is blocked by
Content-Security-Policy: The page’s settings blocked the loading of a resource
See
kinto/kinto/plugins/admin/views.py
Lines 30 to 40 in e8e55d1
(could have opened this issue but used remote-settiungs
The text was updated successfully, but these errors were encountered: