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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:26:50+00:00 2026-06-11T15:26:50+00:00

Scenario & Problem description : User request file to server File is big so

  • 0

Scenario & Problem description :

  1. User request file to server
  2. File is big so it takes time to generate
  3. Client side a spinner is running to show that we are making file.
  4. After few mintes, their proxy times out because server hasn’t respond to the query (The reason file is too big to generate)

My Understanding :

After looking deep into this situation, I have figured that client’s proxy is timing out and I have no control over it. The only thing I can do is to change the logic of client requesting and downloding a file.

Solutions that I thought about :

Solution 1 :

  1. User requests file

  2. Server creates a temporary file on server side, and create an http path such as

    http:\www.mydomain.com\temp\download\files\12342323.pdf

  3. The link gets deleivered to client faster but it remains inactive for certain duration.

  4. User clicks on link once it’s activated.

Solution 2:

I havn’t much read about this, but Is it possible to create socket connection via node.js and transfer the file?

Note:

In solution 1 is top of my head, without any coffee from last 4 hours. The only thing I am stuck as in knowledge is. How am I going to detect that file is done on server side and now my ajax script can enable the link, or download it.

Please throw some new idea to handle this situation. NO DIRECT ANSWER REQUIRED. I rather know which equipment to use for fishing, then getting a fish readymade. 🙂 Cheers.

FYI : I have php and javascript as a tool to use at the moment.

  • 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-11T15:26:50+00:00Added an answer on June 11, 2026 at 3:26 pm

    If the file always gets created eventually, and the problem is on the client side, you could do the following:

    1. When the user clicks on download, you start generating the file via AJAX, and store the name in a session variable for example
    2. In the client, the most simple solution would be to poll the server every X seconds, and have it simply check if the file exists (via php), to know if it has been already created
    3. Once it is, redirect user with javascript to the file’s location to make it download.

    Then you could setup a cron job or something like that to delete the files that have already been downloaded.

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

Sidebar

Related Questions

I'll explain a generic scenario. To explain my problem, I'd request some patience until
I have the following scenario jQuery('#content').fadeOut('slow',function(){ jQuery('#content').load(detail.php?product=+imgID+&category=+cat); jQuery('#content').fadeIn('fast'); }); My problem however is that
Scenario: There is a website with 700-900 concurrent unique visitors at any given time.
Scenario: On the github exists the user guru and his primamy repository for the
Scenario: I have a Question which has 2 radio buttons & two subforms: subformA
I Have a Class that needs to make an HTTP request to a server
Here's the scenario -- I have two tables Names & Sentences: Names Sentences ID
Scenario: I've hundreds of applications instances running on client machines doing a certain job.
User scenario is like follows. My application has list of companies. Each company has
Before I describe my problem, here is a description of the program (IHExplorer.exe) I'm

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.