I am coding an MP3 download that basically makes a new folder
then goes to the stored location and copies the mp3 and places it
in a new folder that later can be deleted. Once the folder is made
and the mp3 is in it - the idea then is to force the download by
sending it to a force download script in an iframe ( php script )
Then re-locate the enduser to an alternate page.
The problem - Is that the forceddownload works if the mp3 is
already there, so I am guesing that the code runs too fast and when
it gets to the force download script - the mp3 file has not yet
been written. yet If this is so - how can I make sure that it is
there first and then have it wait until the code is run before it
executes the forcedownload and redirect?
Below is the script I am using - the problem is that each bit
of coding works seperately but when run together it goes straight
to the <cflocation> and skips the download bit.
<cfset newFold =