Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Brian Juul Andersen 44 posts 98 karma points c-trib
    Nov 23, 2010 @ 10:01
    Brian Juul Andersen
    0

    Creating zip file from content - possible ?

    I was just wondring if it is possible in any way to have Umbraco zip content from say 5 content pickers into 1 zip file ? It could be 5 PDF´s choosen by an editor and then published. The user of the web page would get a link to a zip file containing the 5 PDF´s.

     

    How can this be done ?

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 23, 2010 @ 11:28
    Ismail Mayat
    0

    Brian,

    You will need to create your own datatype to do this and make use of a .net zip library to compress. Take a look at source of umbraco extensions zipupload project it is old but you can see usage of zip library to unzip http://umbracoext.codeplex.com/SourceControl/changeset/view/53797#58550 for the opensource .net lib used see http://www.icsharpcode.net/opensource/sharpziplib/

    Regards

    Ismail

  • Brian Juul Andersen 44 posts 98 karma points c-trib
    Nov 23, 2010 @ 11:34
    Brian Juul Andersen
    0

    Thanks for a quick reply Ismail.

     

    This seems to be do-able even for a guy with my skills of coding.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 23, 2010 @ 11:43
    Ismail Mayat
    0

    Brian,

    I reckon it would make a good addition to uComponents project http://ucomponents.codeplex.com/  get yourself some karma ;-}

    Regards

    Ismail

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies