Jump to content

Not getting correct file size


techcone

Recommended Posts

Hello developers. Here is quick review on my problem.

 

My users download files from rapidshare using my acc.

 

Means rs->myserver->user

 

Now while file is still being downloaded, i gave them the dl link so they don't have to wait. Using the dl link, when they start downloading , the file size is reported incorrect bcoz it is still in being state of downloading. Any possible remedy of tht ??

Link to comment
Share on other sites

you need to set the headers before you get them if it is being treated as a stream

 

Huh? I'm not sure you know what he's trying to accomplish

 

Means first I should get the file size from array of getheaders, create a stream of same filesize and give to user correct ?

 

Should work fine. Personally, I'd grab them when I open the initial stream from RapidShare, then store somewhere ( database perhaps ) for easy, reliable access when you stream the file to the user.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.