Timeline for Downloading from private directory corrupting some file types
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 26, 2018 at 8:24 | vote | accept | tanbog | ||
Jan 24, 2018 at 3:21 | answer | added | tanbog | timeline score: 1 | |
Jan 24, 2018 at 2:37 | history | edited | tanbog | CC BY-SA 3.0 |
added 289 characters in body
|
Jan 24, 2018 at 0:14 | comment | added | tanbog | I assume this is related to this issue drupal.stackexchange.com/questions/240016/… however I do not know how to force php NOT to do this... | |
Jan 24, 2018 at 0:02 | comment | added | tanbog | Ok after looking more closely at a binary diff of a good and bad file I can see Drupal or php is inserting 3 chars at the start of the file.... | |
Jan 23, 2018 at 23:41 | comment | added | tanbog | my test file is 139 KB on disk (All the other broken files are of similar size). Download is still the same size but all garbage and not retrievable by word. No php errors are being logged. php config is set to allow 8MB max file size with 24M post_max and a memory limit of 128MB | |
Jan 23, 2018 at 23:28 | comment | added | Mario Steinitz | How big are your files and how much memory does your PHP has on the server? Did you get any errors logged to PHP's error log when downloading the files? Private files are served using PHP. So the culprit may be your PHP configuration (memory_limit, base path, ...). Make sure it doesn't report any errors and/or report back what you find investigating it. | |
Jan 23, 2018 at 23:18 | history | asked | tanbog | CC BY-SA 3.0 |