The fallback image gets stored temporarily and is removed by cron. There would need to be a custom submit handler to add a file_usage reference and mark the image as permanent so that it doesn't get deleted by cron. See https://api.drupal.org/api/drupal/developer%21topics%21forms_api_referen...
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | MakeDefaultImagePermanent.patch | 1.15 KB | schnippy |
Issue fork imagecache_external-2954557
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
classiccut commentedHere's a patch
Comment #3
swentel commentedThis happens on the 8 version as well. This is quite annoying :)
Comment #4
schnippy commented@ClassicCut is correct, I was seeing this issue consistently and can confirm that when I upload a default image it is being saved with status '0' or non-permanent so it will be (and has been) removed by cron.
I used the same approach for D8 to use the ConfigFormBase and File API and confirmed that when uploading a file, it is now setting the permanent bit:
Not able to queue tests on this as the ticket is still tied to Drupal 7.x branch, do we need to create separate tickets?
Comment #6
schnippy commentedProbably can ignore the above patch, I'm trying to level up and go for broke with an issue fork merge (https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupa...), definitely appreciate any guidance on the process.
Comment #7
swentel commentedMoving branch, will check soon
Comment #9
swentel commentedcommitted and pushed (with some minor changes), thanks.