Copied to clipboard

Flag this post as spam?

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


  • Mike B 14 posts 57 karma points
    Nov 29, 2015 @ 20:24
    Mike B
    0

    Handle files on the server side after you attatch to form with fileManager.addFiles() ?

    Hello,

    I want to know how to handle the file collection from the server side after I use fileManager.addFiles() on the .js property editor.

    My goal is to upload files as media and attach the IDs as a coma delimited string on the property value.

    My source crawling has gotten me to think this should be done like here

     https://github.com/umbraco/Umbraco-CMS/blob/d50e49ad37fd5ca7bad2fd6e8fc994f3408ae70c/src/Umbraco.Web/PropertyEditors/FileUploadPropertyEditor.cs
    

    and then passed on something like this

      https://github.com/umbraco/Umbraco-CMS/blob/d50e49ad37fd5ca7bad2fd6e8fc994f3408ae70c/src/Umbraco.Web/PropertyEditors/FileUploadPropertyEditor.cs
    

    But I'm kinda stuck on how to go about doing this without breaking everything. Seems like whenever I make a server-side property editor it overrides EVERYTHING and I get all sorts of weird errors.

    Any idea on how I can achieve my goal and if I'm on the right track or not?

  • 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