⚠ 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 photo to directory not have field in database table



Mahmoud Youssef
  • profile picture
  • Member

Posted 07 January 2013 - 11:47 AM

HI,

I want to upload photo to directory without field in database and renaming it with the primary key.
please help

likhon3k
  • profile picture
  • Member

Posted 10 February 2013 - 18:44 PM

HI,

I want to upload photo to directory without field in database and renaming it with the primary key.
please help

 

 

Giving parts of your query about image upload into directory, not in database.

 

you have to create a folder at: assets/uploads/files where you want to upload files.

 

add this line into your controller function $crud->set_field_upload('upload_file_url','assets/uploads/files');

 

create a table field name upload_file_url, field type=varchar with length.

 

thats all.