3 Replies Latest reply on Jul 8, 2016 8:38 AM by gallan RSS
    kqian-2 Explorer

    I need help~!!! How to upload a local image file to be a MediaEntity by a service?

    How to upload a local image file to be a MediaEntity by a service?

      • Re: I need help~!!! How to upload a local image file to be a MediaEntity by a service?
        gallan Explorer

        Where are you loading the Image from?  If you can generate access it via a URL you can use

         

        var params = {

          tags: undefined /* TAGS */,

             ...

          timeout: undefined /* NUMBER */

        };

         

        Resources["ContentLoaderFunctions"].LoadMediaEntity(params);

         

        If the image is associated with a thing you can store it in a property of type image or the Avatar and then upload the image via a Repository using the FileUpload widget.

         

        If you want to store multiple images I'd suggest a Data Table as I don't think you should be  using Media Entries for dynamic data

         

        Can you give some more background/say what you have tried so far?