{"action":"closed","issue":{"url":"https://api.github.com/repos/easmith/selectel-storage-php-class/issues/7","labels_url":"https://api.github.com/repos/easmith/selectel-storage-php-class/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/easmith/selectel-storage-php-class/issues/7/comments","events_url":"https://api.github.com/repos/easmith/selectel-storage-php-class/issues/7/events","html_url":"https://github.com/easmith/selectel-storage-php-class/issues/7","id":55619311,"number":7,"title":"Problem with miltiple file uploads","user":{"login":"saahov","id":41303,"avatar_url":"https://avatars.githubusercontent.com/u/41303?v=3","gravatar_id":"","url":"https://api.github.com/users/saahov","html_url":"https://github.com/saahov","followers_url":"https://api.github.com/users/saahov/followers","following_url":"https://api.github.com/users/saahov/following{/other_user}","gists_url":"https://api.github.com/users/saahov/gists{/gist_id}","starred_url":"https://api.github.com/users/saahov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saahov/subscriptions","organizations_url":"https://api.github.com/users/saahov/orgs","repos_url":"https://api.github.com/users/saahov/repos","events_url":"https://api.github.com/users/saahov/events{/privacy}","received_events_url":"https://api.github.com/users/saahov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-27T13:46:43Z","updated_at":"2015-03-12T12:10:12Z","closed_at":"2015-03-12T12:10:12Z","body":"I got this error when I trying to upload multiple files:\r\n\r\n```\r\ncurl_exec(): CURLOPT_INFILE resource has gone away, resetting to default\r\n./vendor/easmith/selectel-storage/src/SCurl.php line 106\r\n```\r\n\r\nExample code:\r\n\r\n```php\r\nfunction getFiles($files) {\r\n    foreach ($files as $file) {\r\n        $u[] = upload($file);\r\n    }\r\n    return $u;\r\n}\r\n\r\nfunction upload($file) {\r\n    foreach ($files as $file) {\r\n        $selectelStorage = new SelectelStorage('login', 'pass');\r\n        $sel             = $selectelStorage->getContainer('name');\r\n\r\n        $res             = $sel->putFile(\r\n                              $file['name'],\r\n                              $file['file_path']\r\n        );\r\n    }\r\n    return $res;\r\n}\r\n```"}}