We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40092
    • 265 Posts
    Hi Guys,

    i had the following issue, when saving an image to a (custom) Mediasource, it saved as follows: ./imagename.jpg.
    That caused(obviously) some problems on validation etc.

    I have been fiddling around with some settings (firstly taken notes on how they were exactly), could not get it to work like i wanted, so i decided to put the settings back to how they were and now it fails to open the directory or write the image to it. All i get now is "Specified directory is not a directory: c:/xampp/htdocs/devabc/uploads/accomodations/" .

    Does anybody have a clue where i am going wrong and how to do what i wanted to achieve in the first place. (getting rid of the ./ prefix)

    Cheers
      • 4172
      • 5,888 Posts
      not sure, if its possible to get rid of the './' prefix with any setting.
      I saw this issue sometimes, too.

      a simple solution could be, to remove the './' before saving the value within a plugin
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 40092
        • 265 Posts
        Hi Bruno,

        I was affraid of that. Well, could somehow try and save it stripping the prefix.
        Any best practices for doing so in MIGX(That's where i'm using it in . ;-)

        And anybody got a clue of how the default setting should be?

        Cheers
          • 4172
          • 5,888 Posts
          Is it a normal MIGX - TV inside a Resource?
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 40092
            • 265 Posts
            I guess so, here is where i'm using it: