PDA

View Full Version : Can you move previously uploaded files with a click ?


songboy
02-08-2010, 09:49 PM
I need to move an mp3 file that has previously been uploaded. It has to be moved from one folder to another one which feeds an embedded player. No form is involved. A user clicks PLAY and a sequence of actions occurs which moves the file so that it can be played. I can do all of this as a result of a form upload sequence but what if you need to do a php sequence without someone submitting a form. If I just link to the file it will just start to play via media player and I don't want this.
I looked around and found the javascript 'onclick' command but I was not sure if this was the answer as I got quite lost down the javascript road about a month ago.
If you understand what I'm getting at could you give me an assist ?
Thanks -
Songboy

davidj
02-09-2010, 06:42 AM
i wouldnt move the file its self as there would be a delay if moving a few and there is a risk of corruption

i would create a playlist and load the music off that