⚠ 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 forum is read-only and soon will be archived. ⚠

Dynamic upload path for Image CRUD??

image crud dynamic path upload path

  • Please log in to reply
No replies to this topic

#1 Sebastián



  • Members
  • Pip
  • 4 posts

Posted 28 December 2016 - 09:15 PM

Hello developers!!

I'm working with Image CRUD and it works fine with an specific upload path, but I'm trying to upload images to a dynamic folder name.

If I define the variable $path = '../images/gallery/25'; it works fine, but when I try to define it dynamicly with the $property_id parameter it doesn't work. It upload the images to another folder named "upload_file" (I didn't created it).

Any idea about it?

function test($property_id = "")
        $image_crud = new image_CRUD();		

        $path = '../images/gallery/'.$property_id;
            //->set_image_path('../images/gallery/25'); this works fine but is not dynamic

	$output = $image_crud->render();

Also tagged with one or more of these keywords: image crud, dynamic path, upload path

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users