I'm attempting to create a Graduates directory for a yoga college with Gravity Forms that essentially creates a "Graduates" custom post type (a personal profile essentially). This is behind a membership wall and embedded within a normal wordpress page. I have been able to get everything working for reading values from the database so that they can update their profile whenever they want. I have even got their "updates" to update their respective Graduates custom post type. The only issue I can't seem to get sorted is updating the "featured image" (serving as their profile image). It will upload properly the first time using the Featured Image post field, but I can't seem to find a way to update their profile image.
I have attached my code, with many more details, here: http://pastie.org/3024987
Essentially, media_handle_sideload doesn't seem like it is functioning for me as it is detailed in documentation and the StackExchange post I mention in the pastie code (at least as I understand it). I've been banging my head against this all day and I'm not really sure what to do with it.
If you very talented folks have any ideas as to
a) why media_handle_sideload isn't working for me like it should or
b) a better/more efficient way to do this with Gravity Forms
I would be very, very grateful.
Thanks in advance,