Jump to content


upload image with multiple location

upload

  • Please log in to reply
No replies to this topic

#1 Muhamad Sahib

Muhamad Sahib

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 28 December 2016 - 06:49 AM

Hello,

 

I have a question, I need a way to upload one image but stored in two location..

 

Example :

 

current domain : http://mydomain.com

 

uploaded image : my_picture.jpg

 

store-1 : http://mydomain.com/pics

 

store-2 : http://myseconddomain.com/pics

 

My current code :

 

function product_image()

{

     $crud = new grocery_CRUD();

     $crud->set_table('product_image');

     $crud->columns('PATH');

     $crud->set_field_upload('PATH','pics/');

     

     $output = $crud->render();

     $this->_example_output($output);

 

}

 

 

Thank you







Also tagged with one or more of these keywords: upload

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users