|
hi
im making a flash mp3 player for my website, but have a query about folder security. i want users to be able to upload mp3s which will be stored in a password protected folder, but i also want flash to be able to access the files and stream them from the server - as myspace does.
flash can't access password protected folders, so whats the standard practise in this scenario?
theres 2 ways i have in mind -
1. use php to temporarily unprotect the folder while flash gets its info, then lock it again ---- not very secure
2. on upload, copy and convert the mp3s to .flv format saving the mp3 version to a password protected dir and the .flv into an unprotected dir. i would then make the flvs playable only on the player installed on my website so anyone who did manage to dload them directly wouldnt be able to play them-- the drawback to this method is the disk space required, and the reduced speed of upload.
any one have any better ideas?
thanks
mark
|