Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hausmanconsulting

    (@hausmanconsulting)

    Sorry for not following up, Nickolas. My solution was to move the target folder into /wp-content/uploads/, which worked. I never did figure out why I wasn’t able to upload to /wp-content/plugins.

    Edit: Answering your previous question, there are .htaccess files in the target directories on both sites (the one that works and the one that fails) and they are identical.

    Thread Starter hausmanconsulting

    (@hausmanconsulting)

    Good morning. Here is the shortcode (I will try to go back and edit if those shortcodes don’t format correctly here):

    [wordpress_file_upload uploadpath="plugins/s2member-files/" uploadrole="editor,administrator" forcefilename="true" askforsubfolders="true" subfoldertree="auto" adminmessages="true" debugmode="true" placements="title/selectbutton/filename/subfolders/uploadbutton/userdata/message" uploadtitle="Upload Files (only visible to Admins & Editors):" selectbutton="Select File…" uploadbutton="Upload" subfolderlabel="Select Folder:" successmessage="File %filename% uploaded successfully. RELOAD to view." widths="filename:300px"]

    And when it fails, the detailed error is:

    Upload failed!
    Not allowed to upload to target folder. Failed upload path: /home/REDACTED/REDACTED/wp-content/plugins/s2member-files/Documents/test.pdf

    That is the correct path. I ended up altering the shortcode to this, which works:

    [wordpress_file_upload uploadpath="uploads/s2member-files/" uploadrole="editor,administrator" forcefilename="true" askforsubfolders="true" subfoldertree="auto" adminmessages="true" debugmode="true" placements="title/selectbutton/filename/subfolders/uploadbutton/userdata/message" uploadtitle="Upload Files (only visible to Admins & Editors):" selectbutton="Select File…" uploadbutton="Upload" subfolderlabel="Select Folder:" successmessage="File %filename% uploaded successfully. RELOAD to view." widths="filename:300px"]

    The drawback is that I had to apply another function to move the file location in s2member. I have WFU writing to plugins/s2member-files in another (older) wordpress installation, so I’m just not sure why it doesn’t work here. No errors in the server logs either.

    In case anyone else is wondering about this, it appears that a site administrator user can edit the profile of other users.

Viewing 3 replies - 1 through 3 (of 3 total)