Mam następujący kod: $main_image = glob('main*.{jpeg,gif,png,jpg,JPEG,JPG,PNG}', GLOB_BRACE); if (count($main_image) != 1) die("Could not find main picture !"); $file_path = drupal_realpath($main_image[0]); $file = (object) array( 'uid' => $userID, 'uri' => $file_path, 'filemime'...