It works perfectly if i replace the image url by a public one. The problem is i have hundreds of pics that i dont want to upload to a public server (it defeats the purpose of the app i'm writing).
Is it possible to upload images directly from the hard drive??
Hi! i 'm trying to post an item with pictures. I'm able to do so if i use public images that are hosted in some web pages
Is it possible to use images from your own hard drive? without uploading them to a server?
This is my code:
$params = array('access_token' => $_SESSION['access_token']);
$body = array("price" => '2',
"title" => 'LOCAL 2ND TRIAL',
"category_id"=> 'MLA40490',
"currency_id"=>"ARS",
"available_quantity"=>1,
"condition"=>"used",
"listing_type_id"=>"silver",
"pictures"=>array(array("source"=>"C:\xampp\htdocs\logoHgin.jpeg"))
);
$response = $meli->post('/items', $body, $params);
It works perfectly if i replace the image url by a public one. The problem is i have hundreds of pics that i dont want to upload to a public server (it defeats the purpose of the app i'm writing).
Is it possible to upload images directly from the hard drive??
Thanks in advance!!
Share this post
Link to post
Share on other sites