Really struggling with some code here.
I have a site where I've created a custom role 'Agent' and an agent needs to be able to upload images via a frontend form.
I've managed to get the code working and it's fine but as soon as I've tried it on an SSL domain it doesn't seem to work. I mention about the SSL because I've got it working on two different domains without an SSL but it doesn't work on two domains with an SSL attached to it.
So I've started working on a simplified development version of the site, which is now on an SSL domain so I can get it working.
Now the frontend works as I mentioned on a domain without an SSL as an agent role. But breaks on with an SSL, I've managed to upload an image file with the frontend form as an administrator fine.
I'm really struggling here so if anyone has any idea what might be going on it would be really appreciated.
I should also mention that I used User Role Editor and gave the 'Agent' role every single capability to make sure that wasn't an issue.