Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stephen Adams 23 posts 43 karma points
    Oct 06, 2011 @ 21:04
    Stephen Adams
    0

    Uploadify, HttpHandler, and Umbraco

    Hi all,

    We're creating a page that allows registered users upload images. We've decided to go with Uploadify. With Uploadify, we've created a custom HttpHandler which will handle file uploads. However, when handling file uploads we need to ensure a few things: that the user is logged, in particular.

    Our current check logged in methods ensures the following:

    HttpContext.Current.User.Identity.IsAuthenticated

    And

    Member.GetCurrentMember() != null && Member.GetCurrentMember().id > 0

    That way throughout the site, we can ensure that they can do certain things. If we add a WCF method, our logic works fine, however we needed to create an HttpHandler for image uploading, and that doesn't appear to be working at all with Uploadify/Umbraco.

    Basically, the IsAuthenticated field is always false. And the GetCurrentMember always returns null.

    What can be done so that we can have access to the current user's identity as well as the current Umbraco user?

Please Sign in or register to post replies

Write your reply to:

Draft