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 491391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T02:00:23+00:00 2026-05-13T02:00:23+00:00

I am using swf-upload to handle file uploads on a site I am working

  • 0

I am using swf-upload to handle file uploads on a site I am working on.

The problem is the catching function, called swf-upload.php. If I visit the URL it is at directly it works fine, it correctly reads starts the session and gets the user rights, but when the web page calls it with the ajax callback it claims the session is empty.

I am using a combination of error handlers and output logging to find out what it’s doing and there is utterly no difference in the code path between the direct access and the ajax access.

Any ideas what’s up?

  • 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-05-13T02:00:23+00:00Added an answer on May 13, 2026 at 2:00 am

    This is a known issue in swfupload, you need to pass your session id in to the swfupload constructor and then recreate explicitly restart this session in your remote file using the session id you have passed like this:

     // in your javascript file 
     swfu = new SWFUpload({
      upload_url: "http://<?=$_SERVER['HTTP_HOST']?>/scripts/swfupload2/upload.php",
      post_params: {"PHPSESSID": "<?=session_id()?>"}
     }
    
     // in your PHP file
     if (isset($_POST["PHPSESSID"])) {
      session_id($_POST["PHPSESSID"]);
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using SWFUpload to handle file uploads and have run into a problem where
I am using an upload script that runs a function once the file is
I'm currently using SWFUpload to upload files to my S3 bucket. And it's working
I am using swfupload to upload files on a website, the problem that every
I'm looking for a way to find out the URL of a SWF using
I am trying to read the header of an SWF file using NSData. According
I'm using plupload to upload files to my server ( http://www.plupload.com/index.php ), however I
I am working on a project, in which I need to upload the .swf
I am facing a really weird problem. I am using swfupload to upload multiple
I'm trying to get a file upload progress bar working in a rails 3

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.