Comments (5)
Works for me locally.
from a4-product.
the images are stored with the access permissions -rw------- (600)
and are thus not readable by the user the nginx server is running.
@2e2a you reported this behavior before. did you find out why the permissions were set that way? and how did you resolve the problem on meinBerlin liqd/a4-meinberlin#581
i tried to reproduce, but the image i did upload now is stored with the correct permissions -rw-r--r-- (644)
:(
from a4-product.
No, I could not reproduce it and it did not occur again.
from a4-product.
i fixed the uploaded images permission for now manually by running
find /home/django/django/media/uploads -type f -exec chmod 644 {} \+
from within the container. but this issue is really weird.
from a4-product.
the problem resulted from the django file storages behaviour in regard to temporary files.
if a file of a size less then 2.5mb was uploaded it is stored first in memory and finally, after validation, stored to the disk
for files greater then 2.5mb a concrete temporary file with the 600 perms is created for the uploaded data. this file is later renamed to the desired filename, but the perms are not adapted.
to explicitly set the perms to 644 the https://docs.djangoproject.com/en/2.0/ref/settings/#std:setting-FILE_UPLOAD_PERMISSIONS setting has to be set.
this issue is closed as the deployment has been extended set FILE_UPLOAD_PERMISSIONS = 0o644
from a4-product.
Related Issues (20)
- #2191 Change typeface to sans-serif in dropdown
- #2191 button hover makes it unreadable HOT 1
- #2191 button expands on hover in dashboard
- image upload on 2 lines due to larger font size
- add catergories form fields wrong size and incorrect margins
- very long username breaks profile and settings
- blueprint list after add module too narrow
- #2322: fonts on mobile screens HOT 4
- #2322: margins and layout on mobile screens HOT 4
- #2322: differentiate the footer from content area
- get_newsletters during normal register is broken
- #2322: organisation landing page layout
- #2321: small support banner is not shown in German
- #2389 wording in django admin
- idea tiles: make sure username breaks/is cut off, when tile too small
- donation banner is shown on error pages
- donation banner is shown in speakup HOT 1
- poll-comment export seems to be broken HOT 1
- styling poll dashboard: answer remove buttons break to next line
- styling: not enough space for donation banner below footer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from a4-product.