Upload files without adding to a database table
- Single Page
Posted 16 May 2014 - 18:30 PM
Posted 19 May 2014 - 08:47 AM
Well it is quite possible what you say...
What you can do is use .. $crud->add_fields ... to set all the fields u want in the add form. There u can add extra field that u want the user to treat as an upload. Set that field type to be file_upload with all the necessary parameters.. This will suffice yr need of u uploading the file .. and when u click on delete (only in add form) it will also delete the file.
add callback_before_insert to the crud and there in that function unset the extra field that was set for upload..
thats it.. its all done.. the game should roll your way...
Happy GCing :)