When node is created normally, images are uploading okay.
When node is created by a Triggered Rule, images are uploaded, but not saved.

Comments

vogre’s picture

Okay, I've found it!

In the function gallery_assist_makedirs there are numerous checks like

if (is_dir($my_user_upload_folder) && !is_dir($my_gallery_upload_folder)) {
if (file_check_directory($my_gallery_upload_folder, 1));
}

But there is no check for existence of $my_user_upload_folder.

Doing this helps a little:

3382: = $my_gallery_previews_folder = $my_gallery_upload_folder ."/prev";
3383: + file_check_directory($my_user_upload_folder,1);

Sorry for not providing a correct patch:(

jcmc’s picture

Category: bug » task