hi, i would say u can't do something like this just with flex.
I think you have to do it with PhP or an other serverside Script.
Just look how u can upload files via Flex to your server and how to zip them with php if this is even possbile.
Greetings, i hope i could help you a little bit
edit: a good example: http://weblog.cahlan.com/2006/09/uploading-files-with-flex-and-php.html
I've done very little server side scripting but wouldn't the ability for server side PHP to create zips on a local hard drive be a massive security flaw?
Googling suggests compress & upload within Flex has been requested for years so I'm surprised there's no automatic support for it yet. I'd much rather develop in Flex but the lack of this single feature may mean that I have no choice but to opt for Silverlight instead, which is a bit frustrating.
You could check first if the files are really images, videos or whatever they can be and then you could zip them.
In the Manual i found this : http://www.php.net/manual/de/book.zip.php for ziping with PhP .
So i think it is possible and a no massive security flaw.
Yea it is not the easiest think to upload something with flex and to understand how it works.
But i worked a little bit with it and it seems after time it is not soo complicated.
Thanks, I'll check that out but since I am fairly new to web development I just want to make sure I understand correctly.
Server side PHP should allow me to compress files stored on the client computer prior to uploading to the server rather than compress them once they've been uploaded?
So, for example, the user browses to the directory of the files from the flex app and from there I can automatically compress then upload?
It is more like you select the Files with your Flex app and then send them to your server and there they will be compressed from your PhP script.
Current i have not much time but when i have more time i build you such an app and post it here.
My sample files are 107MB uncompressed and less than 7MB when compressed so I really need to compress prior to uploading to save on bandwidth.
Silverlight supports compress and upload so it looks like that is the way to go. This is a common feature request so I don't understand why Adobe don't implement it.
Thanks for your help anyway