Have you checked so that the access right are correct so the uploader have access to also publish?
Thanks Henrik for reaching out, the user has also the publish rights. So it has to be something else
Ok then it might be with the event listeners.
If you just comment them out locally and then try to upload, does it work then?
Nope, I've removed the IInitializableModule from my project and tried to upload a file. Then the same behaviour occurs, the image still needs to be published.
I'm now focusing on the fact that the Alternative text is required before publishing. Maybe that is why the image isn't auto published
Yes, that is it, sadly right now Episerver will not throw up the required dialog for media (I have been there myself so that would have been my next question).
So the only way to solve this is to remove the required attribute. (or you can take control of it yourself, like Marja does here:
Yeah I finally found out that we had set the alternative text to required. So that was the curlpit all allong
Great that you solved it!
I have a situation when I upload an image, the image still needs to be published and must have an alternative text. The strangest thing is that 'Automatically publish media on upload' is turned on in the System Configuration --> System Settings --> Edditing (tab)
All though I have two modules that hook on EventsSavedContent they only concern two different types of content (not related to images)
Ofcourse the event is send but I just return the event like so