Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have an idea to make this package even greater. Currently after media items are uploaded the media tree doesn't get refreshed. This can be done easy by adding the following code after the uploading is completed:
.ShowSpeechBubble(BasePage.speechBubbleIcon.save, "Saved", "The media items have been uploaded");
This will sync the tree (you need to get the path of current node) and show a popup the files have been uploaded.
This is actually something I tried to do, but was completely unaware of the power of the ClientTools class...Hopefully I'll update the project in the next couple of days, you'll get due credit :)
Thanks again, Jeroen!
I didn't know about it either until I started looking at the umbraco 4.5 source code :). Glad I could help a little with this awesome package!
Any idea when you've got time to add this feature?
I might have some time tomorrow morning, but no promises...
If you make me a Contributor for this project I'd be happy to build in this functionality.
Hi Jeroen & Emanuel,
Hope you decide to cooperate on this feature - it's very needed! :)
I'm getting an error about Current not being part of BasePage.
Edit: Never mind. My project was targeting the wrong version of the framework.
Can you be a bit more specific on what the error says?
I'm trying to call this code in the Media.AfterSave event handler, but I'm getting "object reference not set to an instance of an object" when trying to use umbraco.BasePages.BasePage.Current - is there another way to access 'current' in a media event?
BasePage.Current won't work because the code is running under a .ASHX totally outside the Umbraco engine.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted