Big files are uploaded with broken permissions
See original GitHub issueIssue Summary
Files bigger than 2.48 MB are uploaded with wrong permissions and are not readable from /media/
Steps to Reproduce
Create two files with content size 2600000 bytes and 2700000 bytes. The second file gets its access rights mangled. Reproducible for me on two separate installations.
wagtail 1.12.2, Django==1.11, python 3.5.2+ (ubuntu 16.10)
and
1.13. with python 3.5.3 (ubuntu 17.04):
django-analytical==2.3.0
django-compressor==2.2
django-redis==4.8.0
django-sekizai==0.10.0
libsass==0.13.3
psycopg2==2.7.3.1
wagtail==1.13.1
waitress==1.1.0
requests==2.18.4
This is how the files get saved in media
with the smaller ones working as expected:
Any ideas on how to resolve this issues or where to start digging?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Resolve issues with uploading large files in Amazon S3
I'm trying to upload a large file using the Amazon S3 console. ... The IAM user or role must have the correct permissions...
Read more >Fix problems uploading files on the OneDrive website
Sign in to OneDrive with your Microsoft account, and then try to upload the file again. You don't have permission to access the...
Read more >How to Fix File and Folder Permissions Error in WordPress
Incorrect file and folder permissions can cause errors on your WordPress site during upload. In this article, we will show you how to...
Read more >Unrestricted File Upload
File uploaders should be only accessible to authenticated and authorised users if possible. Write permission should be removed from files and folders other ......
Read more >How to Fix Server Upload Permissions
This permission error normally occurs when a file on the server is not world-readable. By default, when new files are uploaded, they are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Did you try setting FILE_UPLOAD_PERMISSIONS?
I agree. If FILE_UPLOAD_PERMISSIONS doesn’t help and testing with a FileField shows that this is Wagtail-specific, let us know and we’ll reopen.