(09-29-2012, 10:30 AM)Petie Wrote: We've talked about this in the past and while I can't 100% remember the result, I think it boiled down to the fact that sounds are submitted via zip and to give previews for the files said zip contains would require one of two equally complicated options:I'm fairly sure that PHP has a class for zip files. Well, I was able to create zip files with it, dunno about the reverse.
1. Install some software that could read from zips on the fly to pull out the requested file for preview. This would be a massive strain on the server as well as be a bit complicated to set up.
2. Require individual preview files to be uploaded with each submission. This would make the submission process much more tedious and also somewhat defeat the purpose of the zip since you'd have to upload individual files anyway.
If anyone has any ideas on how to make this work, I'm all ears, but I don't think it's going to be something we can offer unfortunately.
The only concerns about unzipping uploaded files to use for previews is either bandwidth use for previewing or the space of the unzipped files (oh and the potential for PHP files to be stealthily included in the zip in an attempt to compromise the server. It can happen ).
Of course, a solution would be to have the server snip sounds down to preview size but unless you have software to dynamically generate preview sounds that won't happen and I honestly have no clue if PHP has an audio library