• I have the following set up

    /home/userid8/public_html/alpha/<wordpress files>
    /home/userid8/wpfm/<directories and files> (note, not under WordPress or public_html)

    FMA Config:
    Public Root Path:
    /home3/userid8/public_html/alpha/

    Files URL:
    https://www.mywebsite.com/wpfiles

    Hide File Path on Preview: Checked

    and my shortcode is:
    [file_manager_advanced login=”yes” roles=”administrator” path_type=”outside” path=”/home3/userid8/wpfm/records/” operations=”mkdir,mkfile,rename,rm,search,upload,download” view=”list” theme=”light” lang =”en”]

    OK, so my files are not in the wordpress structure. My site is configured (outside of file manager using dl-file.php) so that a request to
    https://alpha.mywebsite.com/wpfiles/records/<filename&gt; works (note not https://alpha.mywebsite.com/wpfm/records/<filename&gt; )

    FMA directly works fine to view and browse the files.

    However, when I actually try to open a file in FMA
    (located in /home3/userid8/wpfm/records/file.pdf)

    I get a 404 from wordpress, and the URL IS:
    https://www.website.com/home3/userid8/wpfm/records/file.pdf?_t=1598209440

    I have “outside” configured, but of course wordpress (and the web server) can’t natively access files “outside” (that being the point).

    So the URL shouldn’t have in it:
    /home3/userid8/wpfm/records/file.pdf but should instead be
    /wpfiles/records/file.pdf?_t=1598209440

    Isn’t that the point of the “Outside” config and the Files URL setting?

Viewing 1 replies (of 1 total)
  • Thread Starter ricks03

    (@ricks03)

    A note:
    If I add the short code hide_paths=”yes” the URL changes to:
    https://www.website.com/wp-admin/admin-ajax.php and the file opens.

    That’s not horrible, but it makes it hard to have the user know what URL to use for their file if it’s going to be referenced anywhere else.

    I would think the URL should include the value from the filesURL? Where/what is the files URL good for otherwise?

Viewing 1 replies (of 1 total)
  • The topic ‘Controlling File Paths Outside’ is closed to new replies.