Hi there

I have a form with a file input field on page 1 and a progress bar on page 2. What I'm trying to achieve is for a user to fill out the relevant fields of the form and once he/she hits submit, it takes the user through to page 2 and then initiates the upload of the file (image in this case) with the progress bar showing the progress of the upload.

What appears to happen though is that once submit is clicked, the image first gets uploaded to a temp folder and then moves through to page 2. Clearly this isn't ideal as the progress bar is never seen.

So my question is... is there any way to stall the upload so that it starts once page 2 has loaded with the progress bar?

Ajax is the solution for your problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.