I'm creating an html5 drag/drop upload form field. When the file is dropped an xmlhttprequest is created and posts the file data to the form fields upload action link - /profile/EditProfileForm/field/Image/upload. I always get a 404 in response in the front end, but it works in the backend.... Is there something I have to do to get this to work in the front end? The upload function is public and I have defined it in the $allowed_actions array.
What gets me is... When trying in the cms I can navigate directly to the upload action of the field, in my browser, with no problems- ie. /admin/EditForm/field/Artist/item/9/DetailForm/field/Image/upload?SecurityID=5094...
Try removing upload from the allowed_actions array... it looks like it's matching immediately on that as an action and trying to process it directly, instead of processing it through the form. Is the EditForm defined in the allowed_actions array?
Aah ok... tried removing upload from allowed_actions but still seeing the same problem. EditProfileForm is defined in the profile controllers allowed actions too. I'm almost thinking now I might just send the upload request to a normal standalone controller... Not ideal but it might have to do for now, been stuck on this for days!