I tested this and I cannot replicate it.
Although I wonder: can you look in your
sites/default/files directory to see if the plant type image was uploaded there instead of
sites/default/private/files? The former is “public” while the latter is “private”. If it’s in the “public” directory, that might suggest there’s a bug when farmOS is installed without a private filesystem configured… please let me know.
Edit: oops I mixed things up - disregard the above. (Although maybe still worth checking to see if anything was uploaded into
sites/default/files public directory (or a subdirectory therein)…
Cross-posting Share your JupyterLite Examples - #7 by Symbioquine for future reference since some folks may find JupyterLite a compelling way to do their KML imports - especially if they need more control over how fields are mapped/transformed during import.
I changed to Ubuntu Linux, also with Docker. Same thing here: I cant upload files. Here are some snapshots:
@Farmy Hmm it does look like your configuration is correct. Is this only affecting the KML import? Are you able to upload to assets/terms now?
What Docker image are you using?
I see that
sites/default/private/files has full write access to everyone, but it is owned by
papa:papa. Normally you would have a group of
www-data, and only owner/group write access. I’m curious if a
kml directory exists inside
files and what the ownership/permission of that is…
After much sleuthing and pain here’s how I ultimately solved the upload issue
Seems to be a filepath problem
remove the first slash as in
hopefully that’ll fix your problem
The problem is solved. Not that I changed anything, but suddenly it worked. I just can imagine that certain caches were not flushed or any garbage collection didn’t work for hours. Is there any other way to flush caches except under Configuration - Development - Performance - Clear all caches?
Huh. Well glad it’s working! Although I wish we knew the cause.
Is there any other way to flush caches except under Configuration - Development - Performance - Clear all caches?
That’s the main one - and should clear all Drupal caches. But I don’t think that would affect this…
Did you restart your server? I wonder if PHP’s
opcache was affecting it…
Yes, I restarted the server several times.
If it started working after restarting the server, then perhaps PHP’s Opcache was to blame.