⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

upload image with multiple location



Muhamad Sahib
  • profile picture
  • Member

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