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

  • SEARCH
  • Home
  • 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 8435769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:00:16+00:00 2026-06-10T07:00:16+00:00

I’m trying to use codeigniter and the Blueimp Jquery File Upload plugin for the

  • 0

I’m trying to use codeigniter and the Blueimp Jquery File Upload plugin for the project I’m currently working on: Filtering images for display based on an authenticated user. I need to be able to change the path of the uploads, based on a GET variable on the page that contains the plugin. I want it to connect to a separate folder for each user.

To do this I believe I need to accomplish only one more step: make the codeigniter session ID, which i have in a hidden field in the form available to a server side script in cases where the $_request, $_POST, or $_GET arrays are not set.

from googling around it appears that Jquery File Upload plugin: Dynamically change upload path? is exactly what I am trying to do.

The only problem is that the last step is not explained! I am brand new to JS, Jquery and ajax. Could someone explain how to use jquery to make the session ID available in a php script.

as a hint the blueimp author wrote the following in https://github.com/blueimp/jQuery-File-Upload/issues/241

Have a look at example/application.js, the second section is commented with
// Load existing files:
There, add
+ ‘?ext=VAR1&nota=VAR2’
behind
$(‘#file_upload’).fileUploadUIX(‘option’, ‘url’)
and adjust VAR1 and VAR2 to your desired path variables.

The code in the current main.js file is

$('#fileupload').each(function () {
        var that = this;
        $.getJSON(this.action, function (result) {
            if (result && result.length) {
                $(that).fileupload('option', 'done')
                    .call(that, null, {result: result});
            }
        });
    });

Thanks,

Bill

  • 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-10T07:00:18+00:00Added an answer on June 10, 2026 at 7:00 am

    Here’s a chunk of code I use to run the blueimp upload and is running on a production site. As you can see, I don’t care about appending any session data on at all. I simply tell it the url to upload to and then some callback methods to be called as it does its work. The one caveat I’ll add here is that I am using only the basic plugin which I am styling myself.

    $("#file").fileupload({
            dataType: 'json',
            url: "/Upload/Photo"
            start: function () {
                progress.show();
            },
            progress: function (e, data) {
                progress.progressbar({ value: (data.loaded / data.total) * 100 });
            },
            done: function (e, data) {
                progress.hide();
            },
            fail: function (e, data) {
                progress.hide();
                var message = "An error was encountered!";
    
                // Use the simplemodal plugin to show my error
                modal.showError(message);
            }
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I want use html5's new tag to play a wav file (currently only supported
I am trying to render a haml file in a javascript response like so:
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
i want to parse a xhtml file and display in UITableView. what is the
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and

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.