⚠ 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

A Multi - MultiUpload



clustersblue

clustersblue
  • profile picture
  • Member

Posted 29 April 2015 - 02:02 AM

If you also noticed this line was commented, because when enabled it gives a blank page.  No display and error.

 // ->callback_read_field('ATTACHMENTS', array($artistsPhotoUploader, 'view_upload_fied'))

I'm looking at setup issue here might be there something I miss to include.


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 30 April 2015 - 21:28 PM

well. i am sorry - guys i used that function.. thats part of my library.. but u can look out for the same on gc forum.. i shared it a lot of places!!


Hamelraj

Hamelraj
  • profile picture
  • Member

Posted 15 June 2015 - 07:19 AM

@Amith Shah

i want add this filed insight my tabel, can you xplane how to call this filed in my table plz...and i have try to upload .pdf files so i add pdf format also so i can upload the file but i coudnt view like a pictures.... even i cnt click the link....


nitin

nitin
  • profile picture
  • Member

Posted 02 February 2017 - 20:05 PM

hi amit,

 

I tried your multiuploader and it is working at localhost but at the server is giving an error please check ;-(

 

please follow the attached file

 

 


nitin

nitin
  • profile picture
  • Member

Posted 06 February 2017 - 05:49 AM

Hi,

 

solved it :-) it was because .htaccess was not working


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 08 February 2017 - 09:00 AM

Well great to know you solved it.

Happy GCing :)


khayeseah

khayeseah
  • profile picture
  • Member

Posted 23 May 2018 - 06:31 AM

hi! why is my crud multiupload displaying "no files". but the uploaded files where saved in the database. 

 

 
 
 
 
 
 
 
Profile Code
Sector Name
Title
Source
Body
Attachment/s
Attachment
Actions
170
 
 
 
 
No Files
 
 
168
PH-EITI
Moving Beyond Transparency: Galvanizing...
PH-EITI National Conference 2018
Message of DENR Sec. Roy A. Cimatu...
No Files
 
167
BAMBOO
Sample
 
 
No Files
 
166
PAMB
El Nido PAMB Resolutions
DENR-Region 4B
Resolutions are carried in a press...
No Files
 
 
165
ENVIRONMENT
Highlights of President Duterte's...
 
Highlights of President Duterte's...
No Files
 
 
164
MINING
Mining Industry in the Philippines
The Manila Times
 
No Files
 
 
163
MINING
Gina Lopez blasts moves to again...
 
 
No Files
 
 
162
PUERTO PRINCESA SUBTERRANEAN RIVER
The Sirenian of the Puerto Princesa...
 
 
No Files
 
 
161
ENVIRONMENT
Green tips for Christmas and New...
 
 
No Files
 
 

hamzaworkspace

hamzaworkspace
  • profile picture
  • Member

Posted 13 November 2020 - 01:52 AM

hi Amit,

 

 i am getting error on constructor in uploader class

 

 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Uploader extends CI_Controller {
    protected $path_to_uploade_function = 'admin/uploader/multi_uploade'// path to function. 
    private $files = array();
    protected $default_css_path = 'assets/styles/';
    protected $default_javascript_path = 'assets/scripts/';
    protected $path_to_directory = 'assets/myindia/articles/photos/';
    // table description
    protected $file_table = 'article_photos';
    protected $category_id_field = 'article_id';
    protected $file_name_field = 'photo';
    protected $primary_key = 'id';
    protected $allowed_types = 'gif|jpeg|jpg|png';

    function __construct() {
        parent::__construct();
        $this->load->library('cache');
 

 

i am actually trying to integrate this functionality into one of my project, please help me.

 

here is the error i get
 

An uncaught Exception was encountered

Type: Error

Message: Call to a member function helper() on null

Filename: D:\xampp\htdocs\1hibachachuwork\admin\system\libraries\Form_validation.php

Line Number: 147

Backtrace:

File: D:\xampp\htdocs\1hibachachuwork\admin\application\controllers\uploaders\uploader.php
Line: 17
Function: __construct

File: D:\xampp\htdocs\1hibachachuwork\admin\application\controllers\uploaders\artists_photo_uploader.php
Line: 19
Function: __construct

File: D:\xampp\htdocs\1hibachachuwork\admin\application\controllers\Admin.php
Line: 73
Function: __construct

File: D:\xampp\htdocs\1hibachachuwork\admin\index.php
Line: 315
Function: require_once

 

Thanks