• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Allowing users to download files

    User help
    5
    18
    3.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Jared WiltshireJ
      Jared Wiltshire
      last edited by

      @psysak You can use the file store browser component, unfortunately there's no attribute to hide the upload/move/delete buttons yet (the file stores were originally admin only and the component was designed for this). If the user doesn't have write permission these buttons will not work however.

      <ma-file-store-browser ng-model="maFileStoreBrowserModel" store="default" disable-edit="true"></ma-file-store-browser>
      

      Developer at Radix IoT

      1 Reply Last reply Reply Quote 0
      • P
        psysak
        last edited by

        @Jared-Wiltshire there isn't a way to pass a specific path to that component is there?

        1 Reply Last reply Reply Quote 0
        • Jared WiltshireJ
          Jared Wiltshire
          last edited by

          There is actually.

          <ma-file-store-browser ng-init="maFileStoreBrowserModel = '/rest/v2/file-stores/default/your-folder-name/'" ng-model="maFileStoreBrowserModel" store="default" disable-edit="true"></ma-file-store-browser>
          

          Developer at Radix IoT

          1 Reply Last reply Reply Quote 0
          • P
            psysak
            last edited by

            Just quickly, in reading ng-model is a form input correct?

            Is there an ng output of any kind from this component that I could look at? There are no docs in either the API or regular documentation sections for it.

            Jared WiltshireJ 1 Reply Last reply Reply Quote 0
            • Jared WiltshireJ
              Jared Wiltshire @psysak
              last edited by

              @psysak said in Allowing users to download files:

              Just quickly, in reading ng-model is a form input correct?

              ng-model defines the underlying data of a view. Basically in this case the model data is a string which defines the path to a file. If you select a different file in the browser it will update the model variable with the new path.

              @psysak said in Allowing users to download files:

              Is there an ng output of any kind from this component that I could look at?

              I don't know what a ng output is however you can view any variable in your scope like so

              <pre ng-bind="maFileStoreBrowserModel | json"></pre>
              

              @psysak said in Allowing users to download files:

              There are no docs in either the API or regular documentation sections for it.

              Correct, this component was not originally intended for customer use.

              Developer at Radix IoT

              1 Reply Last reply Reply Quote 0
              • P
                psysak
                last edited by

                Quick question, permissions can't be set on a folder in a filestore can they?

                1 Reply Last reply Reply Quote 0
                • Jared WiltshireJ
                  Jared Wiltshire
                  last edited by

                  No permissions are per file store.

                  Developer at Radix IoT

                  1 Reply Last reply Reply Quote 0
                  • P
                    psysak
                    last edited by

                    Hey guys, I was wondering if I could get your help on this a little bit. In light of not being able to lock down individual files is there any other way, either in mango or through the use of the Angular framework or anything else, which would allow me to implement a file download? Main thing is I need to basically lock a user out from easily getting to other people's files.
                    I suppose let me ask a different question as well. Will mango have an issue if I create a hundred filestores? I'm not sure I'll need 100 but let's say I did.
                    I also do realize I could probably link to an FTP, but that makes a much less seamless experience. I like the file store as well because I can just drop files and they appear. If I had a table or whatever I'd have to traverse a directory and build links dynamically and I'm not great with how to accomplish that.

                    Thanks all, I'm a bit up against it here on this one.

                    Jared WiltshireJ 1 Reply Last reply Reply Quote 0
                    • Jared WiltshireJ
                      Jared Wiltshire @psysak
                      last edited by

                      @psysak said in Allowing users to download files:

                      I suppose let me ask a different question as well. Will mango have an issue if I create a hundred filestores? I'm not sure I'll need 100 but let's say I did.

                      It should be totally fine to have hundreds of file stores.

                      The file stores weren't really intended to be per user but per "group" / "role"

                      Developer at Radix IoT

                      1 Reply Last reply Reply Quote 0
                      • P
                        psysak
                        last edited by

                        OK that's fair, I would consider this implementation an instance of "group/role of one" :)
                        Thanks that helps!

                        1 Reply Last reply Reply Quote 0
                        • MattFoxM
                          MattFox @phildunlap
                          last edited by

                          @phildunlap said in Allowing users to download files:

                          This very thing! Well, and other things.

                          I chuckled a little too hard on that comment!

                          Do not follow where the path may lead; go instead where there is no path.
                          And leave a trail - Muriel Strode

                          1 Reply Last reply Reply Quote 0
                          • ricardoR
                            ricardo
                            last edited by

                            Hi guys,

                            I have a user with only edit-ui-pages role and I have add edit-ui-pages role into flle stores' edit menu page as such:

                            5c571a4b-6053-411f-be6a-a6fb13aed5b3-image.png

                            However, when I login with the new user, the user can only see the file stores > default directory. The user cannot add files or directory to the default directory. Furthermore, the user cannot access the file stores > public directory. What else do I need to setup so the user can access the file stores' public directory?

                            Please advise.

                            BR,
                            Ricardo

                            1 Reply Last reply Reply Quote 0
                            • MattFoxM
                              MattFox
                              last edited by

                              Check filestore permissions under
                              administration->system-settings->permissions
                              for a start.

                              Fox

                              Do not follow where the path may lead; go instead where there is no path.
                              And leave a trail - Muriel Strode

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post