Is it possible to open file in PC through CRM?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MONBERG
    Junior Member
    • Jun 2024
    • 26

    Is it possible to open file in PC through CRM?

    Hello there
    Is there a posibility to create a ,,link" or ,,url" to open file in local PC?
    I do have some files in PC, which are connected to CRM, but they are just locally in PC, as i don't want them to be shared online.
    The way to file look like this
    "C:\TEST DRIVE"

    I also attach a photo of what i mean
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1604

    #2
    For security reasons this is not allowed for most file types. You may open allowed file types like mp4, javascript and so on, but not any type.
    Perhaps this Chrome extension can help, though I did not test it in no way.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8448

      #3
      Adding to the inline file type list may work.



      custom/Espo/Custom/Resources/metadata/app/file.json

      Code:
      {
          "inlineMimeTypeList": [
              "__APPEND__",
              "application/some-type"
          ]​
      }
      But it depends also on the browser.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment


      • MONBERG
        MONBERG commented
        Editing a comment
        Alright, i can add it to the code. But then, it will show like "C:\TEST DRIVE" as URL, or will i have to do something more? And which field should i use on it, like URL or Varchar...? Thanks a lot
    • MONBERG
      Junior Member
      • Jun 2024
      • 26

      #4

      I just found out that i dont have that app/file.json, the file.json is not either in those folders. should i create folder app first, then create a file.json with code you gave me?


      Click image for larger version

Name:	image.png
Views:	33
Size:	22.0 KB
ID:	112829

      Comment

      • yuri
        Member
        • Mar 2014
        • 8448

        #5
        Yes. To create and then clear cache.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • yuri
          Member
          • Mar 2014
          • 8448

          #6
          You need to specify the real file MIME type instead of the one I used as an example.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • MONBERG
            Junior Member
            • Jun 2024
            • 26

            #7
            Alright, i did it like this. Its for the docx document, but its not working tho.

            Click image for larger version

Name:	image.png
Views:	44
Size:	40.6 KB
ID:	112833

            But in the sametime, i installed Local Explorer extension to open files through in the Microsoft Edge. And thats actually working, everywhere outside ESPO CRM for me.
            I attach video so you can see what i mean


            Am sorry if i am confusing you, but i am not a programmer really, i just search solutions on internet ​

            Comment

            • yuri
              Member
              • Mar 2014
              • 8448

              #8
              I don't know why it does not work.

              Now I understand that the solution with mime type is not relevant for your case.
              If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

              Comment

              Working...