• Resolved moonkir

    (@moonkir)


    Your plugin splendor.
    That’s what I need.

    Need some help in your setup.
    I need to upload files to multiple pages. – All users can upload
    But to see the files to download – only uploaded on this page – all users can download

    Example.
    I have a page “page_one” “two_page” “page_three”
    I upload files to the “one_page” and it will appear to download only “one_page”
    On “page_two” and “three_page” – to download files will not be

    I try this:
    [wtf_fu_upload use_public_dir = “1” wtf_upload_subdir=”page_one”]
    [wtf_fu_show_files use_public_dir = “1” wtf_upload_subdir=”page_one”]

    not work ?? view file only me

    https://www.ads-software.com/plugins/work-the-flow-file-upload/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author lynton_reed

    (@lynton_reed)

    There may be a mismatch in the root upload directory for wtf_fu_upload and wtf_fu_show_files as it is not specified in the embedded shortcodes this will default to :

    for wtf_fu_upload : the default value specified in the upload settings page.
    for wtf_fu_show_files : wtf-fu_files

    The easiest fix is to specify the top directory in both embedded shortcodes.
    i.e.

    [wtf_fu_upload use_public_dir = "1" wtf_upload_dir='wtf-fu_files' wtf_upload_subdir="page_one"]
    [wtf_fu_show_files use_public_dir = "1" wtf_upload_dir='wtf-fu_files' wtf_upload_subdir="page_one"]

    you can use whatever dir names you want as long as they match.

    let me know if that fixes your problem.

    lynton

    Thread Starter moonkir

    (@moonkir)

    THX! this work!, but upload work for admin user.
    If the user has the role of “subscriber”, then sending a file, writes the error:
    “SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data”
    BUT, the file is loaded ….

    And the user does not appear able to remove file

    Plugin Author lynton_reed

    (@lynton_reed)

    Could you explain some more please I’m not sure what you mean.

    Thread Starter moonkir

    (@moonkir)

    Sorry, bug in my plugin.
    its work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Upload for curent page’ is closed to new replies.