WordPress.org

Forums

Frontend Uploader
[resolved] Landing page URL if installed in subdirectory (13 posts)

  1. markmacallister
    Member
    Posted 1 year ago #

    The redirect problem pointed out by bob27707 and noted as "resolved" on the support page is actually *not* resolved. It still appears that installation in a subdirectory breaks the redirect action of the plugin.

    (1) I have WP 3.9.1 and Frontend Uploader installed in a subdirectory...it is at

    http://nczs.org/photocontest

    and I have been testing the plugin using the following page:

    http://nczs.org/photocontest/?page_id=5

    (2) When I use just the default short code of [fu-upload-form], my browser redirects to this URL after submit:

    http://nczs.org/photocontest/photocontest/?page_id=5&response=fu-sent

    there's no such subdirectory of "photocontest" so I get a 404 error

    (3) When I try to use a redirect to an entirely different domain, I still get a 404 error. For example, I tried the short code

    [fu-upload-form success_page="http://fieldtripearth.org"]

    but after I submitted I was redirected to the following URL

    http://nczs.org/photocontest/http://fieldtripearth_org=&response=fu-sent

    which is of course also a 404 error

    (4) finally, trying to be clever, i used the following short code

    [fu-upload-form title="This is an upload form dude" success_page="?page_id=66"]

    thinking that maybe it would land me in the correct subdirectory...however, that really failed, with the following redirect

    http://nczs.org/photocontest/photocontest/?page_id=5&response=fu-sent

    (5) is it possible you might be able/willing to fix this? your plugin is exactly what i need for a project i'm working on, but obviously i won't be able to do the project if this remains an issue

    thanks so much...please let me know if i can give you any additional information

    https://wordpress.org/plugins/frontend-uploader/

  2. Rinat Khaziev
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for detailed bug report I will definitely look into it and fix in the next release.

  3. Tustinuggee Thlocco
    Member
    Posted 11 months ago #

    Thank you for this great plugin.

    Am able to see the Post & Media UGC files uploaded, but Post does not have the image, & in Media UGC files, the 'Re-Attach' seems to do nothing but send me back to the same Media UGC files webpage, with the following link: http://www.jacksoncountycreeks.org/wp-admin/upload.php?page=manage_frontend_uploader#the-list

    Working to try and get the media file 'connected' to the Post, and the 'Re-Attach' doesn't seem to work....

    Please advise when time permits.

    Thank you,

    Tim - JacksonCountyCreeks.org

  4. Rinat Khaziev
    Member
    Plugin Author

    Posted 10 months ago #

    Hey markmacallister,

    I just released 0.7.6 which should handle redirects properly.

    So something like
    [fu-upload-form success_page="http://mysite.dev/redirect-here/"]
    should work.

  5. geloquence
    Member
    Posted 9 months ago #

    Hello,

    I just downloaded this plugin and i love it, but i can't seem to figure out to get the redirect to work properly.

    this is what i have:

    [fu-upload-form success_page="http://www.prolific.online.com/thank-you-for-your-submission/"]

    not sure what i am doing wrong.

    thanks for the help!

  6. Rinat Khaziev
    Member
    Plugin Author

    Posted 9 months ago #

    Hey geloquence,

    For security reasons success_page will redirect only to a page on your site. E.g. if you your site is site1.dev success_page that points to site2.dev won't work.

  7. geloquence
    Member
    Posted 9 months ago #

    It keeps redirecting to my wp-admin page, which i obviously do not want members to go. Can you please guide me in the right direction?

  8. Rinat Khaziev
    Member
    Plugin Author

    Posted 9 months ago #

    This is expected behavior of wp_safe_redirect (either redirect to allowed domain or redirect to wp-admin if domain is not allowed).

    The easiest way to figure out domain to use would be just removing "/wp-admin/" part.

    E.g. if your admin has URL of
    http://my.site.dev/subfolder/wp-admin/

    the URL in success_page should start with
    http://my.site.dev/subfolder/

    Probably you're trying to redirect to
    http://www.my.site.dev/subfolder/ which is technically not whitelisted URL.

    Make sense?

  9. geloquence
    Member
    Posted 9 months ago #

    completely understand what you are saying...problem is, there is no subfolder...

  10. Rinat Khaziev
    Member
    Plugin Author

    Posted 9 months ago #

    I need some more information to try to help you

    what's your wp-admin url? can you please post full shortcode that you use?

  11. geloquence
    Member
    Posted 9 months ago #

    my wp-admin url is: http://prolific-online.com/wp-admin

    here is the full shortcode I used:

    [fu-upload-form success_page="http://prolific.online.com/thank-you-for-your-submission"]

    Full Name
    [input type="text" name="post_title"]

    Pen Name (optional)
    [input type="text" name="post_title"]

    Title of Story
    [input type="text" name="post_title"]

    Story Logline (in 140 characters or less)
    [input type="text" name="post_title"]

    Story Synopsis (in one paragraph or more)
    [textarea name="post_content"]

    Story Genre(s)
    [checkboxes name="foo" class="checkboxes" description="choose 3-5" values="adventure:Adventure,coming of age:Coming of Age,crime:Crime,drama:Drama,dystopian:Dystopian,erotica;Erotica,fantasy:Fantasy:historical:Historical,horror:Horror,lgbt:LGBT,mystery:Mystery,new adult:New Adult,paranormal:Paranormal,religious:Religious,roman a clef:Roman a Clef,romance:Romance,sci-fi:Sci-Fi,steampunk:Steampunk,suspense:Suspense,teen:Teen,thriller:Thriller,urban:Urban,young adult:Young Adult"]

    Story Tags (separate with commas)
    [input type="text" name="post_title"]

    Story Length
    [checkboxes name="foo" class="checkboxes" description="choose all that apply" values="short story:Short Story,novella:Novella,incomplete novel:Incomplete Novel,complete novel:Complete Novel,part of a series:Part of a series"]

    Content Rating
    [checkboxes name="foo" class="checkboxes" description="ratings" values="adult content:Adult Content,graphic language:Graphic Language,graphic violence:Graphic Violence,mild sexual content:Mild Sexual Content,strong sexual content:Strong Sexual Content,suitable for all ages:Suitable for all Ages"]

    Send us the first 1-3 chapters of your story for review.
    [input type="file" name="story"]

    [input type="submit" class="btn" value="Submit"]
    [/fu-upload-form]

    thanks!

  12. Rinat Khaziev
    Member
    Plugin Author

    Posted 9 months ago #

    [fu-upload-form success_page="http://prolific.online.com/thank-you-for-your-submission"] should be
    [fu-upload-form success_page="http://prolific-online.com/thank-you-for-your-submission"]

  13. geloquence
    Member
    Posted 9 months ago #

    Wow, I feel silly. What an easy fix. Thank you for all your help. Unfortunately i have a new issue now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Frontend Uploader
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic