Jump to content

Upload files without adding to a database table

file-uploading jquery-file-upload multiple-files file uploading directory

  • Please log in to reply
1 reply to this topic

#1 manushimn



  • Members
  • Pip
  • 9 posts

Posted 16 May 2014 - 06:30 PM

Is there a way to upload multiple files to a directory without connecting with database. I dant want a database table for this purpose. Only the directory should be updated when a new file is added and when we click delete the file in the directory should be deleted. Is there a way to do this? and is there a way to integrate jquery file uploader with grocery crud

#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

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 :)

Also tagged with one or more of these keywords: file-uploading, jquery-file-upload, multiple-files, file, uploading, directory

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users