Git Product home page Git Product logo

grocery_crud_multiuploader's Introduction

Grocery_Crud_Multiuploader

Version

1.0.2 ( update callback fix (28-07-2015 13:17:00), Renamed function upload_file to multiupload_file )

Installation

If you have installed Codeigniter & Grocery crud already you just need to unzip grocery_crud_multiuploader and set permission to upload directory

$ unzip grocery_crud_multiuploader -d /<apache_root>/<CI>

Example

$ unzip grocery_crud_multiuploader -d /var/www/html/virtual/Development/Admin/
$ cd /var/www/html/virtual/Development/Admin/
$ chown -R apache assets/grocery_crud_multiuploader/GC_uploads/
$ firefox http://example.com/index.php/multiuploader/index

If you are using Codeigniter & Grocery crud first time, you may extract and use any of these files,

  • CI_220_GC_141.tar.gz
    Codeigniter 2.2.0, Grocery Crud 1.4.1 preinstalled

  • CI_220_GC_150.tar.gz
    Codeigniter 2.2.0, Grocery Crud 1.5.0 ( Latest ) preinstalled

$ tar -xvf CI_220_GC_150.tar.gz -C /var/www/html/virtual/Development/Admin/
$ cd /var/www/html/virtual/Development/Admin/CI_220_GC_150
$ chown -R apache assets/grocery_crud_multiuploader/GC_uploads/
$ firefox http://example.com/CI_220_GC_150/index.php/multiuploader/index

Usage

$crud->new_multi_upload(arg1,arg2);
         arg1 - string, field_name
         arg2 - array, upload field settings
/* Uses default settings */
$crud->new_multi_upload("my_pictures");
/* Upload field configuration, path, allowed type etc */
$config = array(
		       /* Destination directory */
		       "path_to_directory"       =>'assets/grocery_crud_multiuploader/GC_uploads/pictures/',

		       /* Allowed upload type */
		       "allowed_types"           =>'gif|jpeg|jpg|png',

		       /* Show allowed file types while editing ? */
		       "show_allowed_types"      => true,
	
		      /* No file text */
		      "no_file_text"            =>'No Pictures',

		     /* enable full path or not for anchor during list state */
		     "enable_full_path"        => false,

		    /* Download button will appear during read state */
		    "enable_download_button"  => true,

		   /* show download button only for this types...*/
		   "download_allowed"        => 'jpg' 		
         );
$crud->new_multi_upload("my_pictures",$config);

Package Strucure with sample files & sql dump

grocery_crud_multiuploader
├── application
│   ├── controllers
│   │   └── multiuploader.php
│   ├── libraries
│   │   └── Grocery_CRUD_Multiuploader.php
│   └── views
│       └── crud.php
├── assets
│   └── grocery_crud_multiuploader
│       ├── GC_uploads
│       │   ├── files
│       │   │   ├── grocerycrud_API_and_Functions_list_20141221204352.pdf
│       │   │   └── stock_20141221204418.pdf
│       │   ├── index.html
│       │   ├── mail
│       │   │   ├── input_20141221204215.txt
│       │   │   └── output_20141221204206.txt
│       │   └── pictures
│       │       ├── 10858515_376256832544074_5836979769187221254_n_20141221204057.jpg
│       │       ├── 1780131_679628865422197_963985172_o_20141221205146.jpg
│       │       ├── Goa-Beach-Tour-HD-Wallpaper_20141221204327.jpeg
│       ├── scripts
│       │   └── jquery.mousewheel.js
│       └── styles
│           └── multi_uploader.css
└── multi_uploader.sql

12 directories, 16 files

Add record / Edit record

Add Field

List state

list

List state when no files, field value

no file text

SQL Structure

sql

Author

 Akshay Hegde
 [email protected]
 https://www.linkedin.com/profile/view?id=206267783

License

https://github.com/scoumbourdis/grocery-crud/blob/master/license-grocery-crud.txt

Copyright

Copyright (c) 2010 through 2014, John Skoumbourdis

Many Thanks

John Skoumbourdis, Amit Shah & Victor

grocery_crud_multiuploader's People

Contributors

akshay-hegde avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.