⚠ 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

where is stored uploaded image path?



David Leiva
  • profile picture
  • Member

Posted 01 April 2013 - 13:19 PM

maybe this is a stupid question, but i do not find the solution.. please help.

 

I move a uploaded image to another directory in after upload question...

 

After do that, obiously, image cant be displayed in the list view, firebug raise Network error event because image is not there..

 

I have checked the database and there is no path in the image field..

 

so... how can GC display the images of the table, if they have been moved to another places?  i have a forlder for each row.. which contains the image.

 

thanks in advance..


victor
  • profile picture
  • Member

Posted 01 April 2013 - 19:00 PM

Show your code


likhon3k
  • profile picture
  • Member

Posted 02 April 2013 - 07:50 AM

maybe this is a stupid question, but i do not find the solution.. please help.

 

I am not sure this is your solution or not. but you can try.

 

 

1) Controller use this:

 

           $crud->set_field_upload('upload_file_url','assets/uploads/photograph');
            $crud->set_field_upload('upload_file_url2','assets/uploads/biodata');

 

 

2) Create directory: biodata and photograph at 'assets/uploads' location

 

3) create two field in your table:

 

upload_file_url = varchar (255)

upload_file_url2=varchar(255)

 

4. Now run this.