• Resolved mediadesk3

    (@mediadesk3)


    hello, How would I go about choosing what folder to upload these files?
    I dont want them mixing with my other media upload.
    Essentially I need a folder for files for this event.
    thannnnnks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor aparnascodex

    (@aparnascodex)

    Hello,
    You can use ‘ssa_change_file_upload_path’ filter to change upload directory path. Following is sample code:

    add_filter(‘ssa_change_file_upload_path’,’change_upload_directory’,10,1);
    function change_upload_directory($path)
    {
    $url = ‘New directory url’
    return $url;
    }

    Thread Starter mediadesk3

    (@mediadesk3)

    Hi, thnx for the response.
    When I add this code to the plugin I get an HTTP 500 – Internal Server Error on my website.

    add_filter(‘ssa_change_file_upload_path’,’change_upload_directory’,10,1);
    function change_upload_directory($path)
    {
    $url = ‘https://sample.com/images’
    return $url;
    }

    Plugin Contributor aparnascodex

    (@aparnascodex)

    Hi,
    You have missed ; after $url = ‘https://sample.com/images’ line

    It should be $url = ‘https://sample.com/images’;

    Thread Starter mediadesk3

    (@mediadesk3)

    Hello,
    I added this to the end of the eea-file.php
    and still getting 500 error on my site.

    add_filter(‘ssa_change_file_upload_path’,’change_upload_directory’,10,1);
    function change_upload_directory($path)
    {
    $url = ‘https://sample.com/images’;
    return $url;
    }
    Plugin Contributor aparnascodex

    (@aparnascodex)

    Hi,
    Please share your site credentials on [email protected]

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to change upload directory’ is closed to new replies.