Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8334229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:16:43+00:00 2026-06-09T03:16:43+00:00

This plugin reads image files on blueimproot/server/php/files on page load. I need to read

  • 0

This plugin reads image files on blueimproot/server/php/files on page load. I need to read records from database, and replace ‘download’ HTML structure with my custom structure. I want to show catalog products, which items are affected by uploading/removing images through this plugin.

I’ve done this so far:

  • I changed public function get() { ... } in blueimproot/server/php/upload.class.php to retrieve records from database. This function returns json object.

    public function get() {
        /* default code of Blueimp
        $file_name = isset($_REQUEST['file']) ?
        basename(stripslashes($_REQUEST['file'])) : null;
        if ($file_name) {
            $info = $this->get_file_object($file_name);
        } else {
            $info = $this->get_file_objects();
        }
    
        header('Content-type: application/json');
        echo json_encode($info);
        */
    
        include_once('../../../../connection.php');
    
        $id_cat = $_REQUEST['catid'];
        $query = "SELECT id, name, price, img_path FROM products WHERE id_cat = $id_cat ORDER BY id";
        $prods = mysql_query($query);
    
        $prod_arr = array();
        while($prod = mysql_fetch_assoc($prods)) {
            $prod_arr[] = $prod;
        }
    
        header('Content-type: application/json');
        echo json_encode($info);
        }
    
  • I found that function is called from index.php in blueimproot/server/php:

    switch ($_SERVER['REQUEST_METHOD']) {
        ...
        case 'GET':
            $upload_handler->get();
            break;
        ...
    

    }

I don’t know where the returned json object is processed to show to UI. Have been 2 days and still can’t track that function flow. Please help. Thanks.

Original Online Demo:
http://blueimp.github.com/jQuery-File-Upload/

Original Plugin Download:
https://github.com/blueimp/jQuery-File-Upload/downloads

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T03:16:44+00:00Added an answer on June 9, 2026 at 3:16 am
     public function get() {
        /*
        $file_name = isset($_REQUEST['file']) ?
            basename(stripslashes($_REQUEST['file'])) : null;
        if ($file_name) {
            $info = $this->get_file_object($file_name);
        } else {
            $info = $this->get_file_objects();
        }
        header('Content-type: application/json');
        echo json_encode($info);
        */
            $id_cat = $_REQUEST['catid'];
            $query = "SELECT id, name, price, img_path FROM products WHERE id_cat = $id_cat ORDER BY id";
            $prods = mysql_query($query);
    
            $prod_arr = array();
            while($prod = mysql_fetch_assoc($prods)) {
                //$prod_arr[] = $prod;
    
                $file = new stdClass();
                $file->name = "";// here image name goes i do not find image name in your select query
                $file->size = filesize($prod["img_path"]);// should be complete path
                $file->url =  $prod["img_path"];// should be relative path (http://localhost/images/234.jpg)
                $file->thumbnail_url = $prod["img_path"]; // thumbnail path
                $this->delete_type = "DELETE";
                $this->delete_url = ""; //here delete url you can delete image from database 
                array_push($prod_arr,$file);
            }
            header('Content-type: application/json');
        echo json_encode($prod_arr);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to load this image using ImageIO.read() using the 1.7.0u JVM: http://taste-for-adventure.tablespoon.com/files/2012/02/2012-02-05-poll-hotdog-275w.jpg Chrome
I'm using this plugin: http://www.jeremymartin.name/projects.php?project=kwicks And my code follows this example: http://www.jeremymartin.name/examples/kwicks.php?example=7 I'm using
I am using this plugin for my new site: http://colorpowered.com/colorbox/ The page in concern
Why is this jquery image watermarking plugin not working? I am using the code
This is the code, changing a background image for a jQ plugin, Works fine
I`m using this plugin found on web to preview some images in a php/linux
Using the JQuery wiggle plugin: http://www.class.pm/files/jquery/jquery.wiggle/demo/ How can I do something like this? <script
I am using the Uploadify Plugin to Upload files. although this might be a
Im attempting to style this plugin into my rails 3.2 app and having some
I'm using this plugin and here is the code: http://jsfiddle.net/gm8t5/ Basically I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.