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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:56:41+00:00 2026-05-13T15:56:41+00:00

We provide the ability to submit images to a user’s gallery. While the normal

  • 0

We provide the ability to submit images to a user’s gallery.

While the normal method we have employed works just fine, some people will upload multiple files, which can take a long time, and is annoying in the selection process (one at a time).

I started writing an alternate method using Gears for those that have it. Primarily the goal is to replace the file selection, and provide a progress indicator for the upload (which helps mitigate the frustration when uploading multiple big files).

I have all this done.

I referenced the Movie Uploader code here (http://uploadmovietool.appspot.com/) which demonstrates uploading files using the chunk method. I have it uploading correctly, the server is accepting the chunks, however I am running into a problem trying to handle the incoming data with PHP.

Each chunk is a seperate request to the script, and none of the data is registered in PHP’s normal incoming data vars _POST,_GET,_FILES, etc. I have finally been able to get the data from sucking on $GLOBALS['HTTP_RAW_POST_DATA'] however even when appending the data onto the same file, the image is never complete. It will show portions, but something is always wrong.

..That being said.. if there is an easier way to post files to the script, while still having access to progress updates, I would love to hear it.

When I started this project, I had assumed that Gears would provide me with a way to do multipart post with files like normal, and simply give me an event fire on an interval with progress information. If this is somehow possible (and I’ve obviously missed it), please let me know.

To be clear: We are aware that HTML5 supports progression mechanics, and are prepared to implement based on it as soon as it is viable. 🙂

For further reference:

The headers that I’m sending with the post (as per the google movie uploader example) are:

Request.setRequestHeader( 'Content-Disposition', 'attachment; filename="' + self._fileName + '"' );
Request.setRequestHeader( 'Content-Type', 'application/octet-stream' );
Request.setRequestHeader( 'Content-Range', 'bytes ' + byteRange );

Thanks to anyone who can help.

  • 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-13T15:56:42+00:00Added an answer on May 13, 2026 at 3:56 pm

    From your description it looks like PHP may not be writing the file correctly.. Not sure why.

    However, this is a sticky problem. For instance, Facebook (who also uses PHP as you know) settled on writing an NPAPI plugin to implement this feature.

    http://www.facebook.com/note.php?note_id=178492968919

    Also, you could consider the less portable option of writing browser extensions. This is quite easy to do in Firefox and Chrome, and would give you a good temporary option for users of those browsers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 357k
  • Answers 357k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The other answers are correct. Here is some code you… May 14, 2026 at 9:40 am
  • Editorial Team
    Editorial Team added an answer you ruin the noConflict concept by reassigning the jquery to… May 14, 2026 at 9:40 am
  • Editorial Team
    Editorial Team added an answer If you get that particular error, you don't actually have… May 14, 2026 at 9:40 am

Related Questions

No related questions found

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.