• Recently updated to 3.4.3 and I can’t upload with this extension anymore. First, I must tell that I installed wordpress on xampp (on windows).

    I added the var in wp-config like so :
    define( "ADD_FROM_SERVER", "C:/xampp-7.2.25/htdocs/borne/wp-content/uploads/" );
    With this path, the extension only show folders “020/09” and “016/10” instead of one for each year. And then I can’t open the folders.

    I tried to adapt the path :
    define( "ADD_FROM_SERVER", "C:/Users/Borne/Documents/import" );
    In this case, I see the files I want to upload, but checking them and clicking on the Upload button doesn’t work (the page reload, so clicking has an effect, but the file(s) are not imported in the media library).

    Maybe strictly limiting the fallback to the upload directory of wordpress could simplify things ? (In my opinion: other folders like /home should be accessible only if told. But that’s another subject and not my point here)

    PS : the last “/” added in the ADD_FROM_SERVER var hides the first caracter of the folders name, but the global issue happens with or without the final “/”.

    Hope this could help improving things. This extension was very usefull to me so far 🙂

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Dion Hulse

    (@dd32)

    Meta Developer

    Windows support hasn’t been tested with the latest version, and honestly I’m not going put too much effort into supporting it, it’s known to be buggy and difficult to deal with when it comes to filesystem things.

    I suspect this may be caused by Windows & PHP’s internal path sanitisations, you might need to define it like so:
    define( "ADD_FROM_SERVER", "C:\\Users\\Borne\\Documents\\import\\" );

    Alternatively, possibly, define( "ADD_FROM_SERVER", "/C:/Users/Borne/Documents/import/" ); or even define( "ADD_FROM_SERVER", "/Users/Borne/Documents/import/" ); (Windows/PHP no longer needs the drive letter if it’s referring to something on the same disk)

    • This reply was modified 5 years, 8 months ago by Dion Hulse.
Viewing 1 replies (of 1 total)

The topic ‘Can’t upload’ is closed to new replies.