Currently install_upload_file() will not work in subdirectories of the files directory if the destination does not yet exist. This is because we're using file_check_path() instead of file_check_directory(). file_check_path() works on both files and directories, but won't create a directory if not already existing. This patch switches it to file_check_directory(), since we only need to check directories, and it would be more inline with Drupal's normal behavior to create a directory if it doesn't yet exist on upload.
| Comment | File | Size | Author |
|---|---|---|---|
| install_profile_api_upload_fix.patch | 473 bytes | quicksketch |
Comments
Comment #1
quicksketchI've committed this change.
Comment #2
quicksketchThis change has been committed to the 5--2 backport.