General developer forum

How to stop re-uploading of files on reload ?

 
Picture of Neill Magill
Re: How to stop re-uploading of files on reload ?
Core developersParticularly helpful MoodlersPlugin developers

One of the ways Moodle avoids this is by doing something like:

1) Open $cir->init();

2) Process 

3) Close  $cir->close();

4) Cleanup $cir->cleanup();

5) Automatically redirect the user to the results page.

Then refreshing the page will not cause any data to be resubmitted.

 
Average of ratings: -