Try our conversational search powered by Generative AI!

Le Giang
Mar 6, 2018
  8950
(8 votes)

Upload option in the Select content dialog

Hi again!

When working with media contents (image, video...) in the CMS, you can only upload your files in the Media component. In this post I would like to introduce an add-on which allows you to upload media file when you are in the Select content dialog. Let's see it in action.

I have also added this function to the TinyMCE editor, let's see it below.

Basically, it works as same as when you working in Media component but has some notable points.

  1. Upload button only get enabled when you select folder node on the tree.
  2. OK button only get enabled when you select actual media content.
  3. There is a sync between Select content dialog and Media component, this means that you can see uploaded files immediately in Media component after the uploading process completes in the Select content dialog.

It took pretty much code so I have created a nuget package for this feature, but currently it only supports Episerver CMS 10. I will make it work with Episerver CMS 11 soon.

EpiserverSite.TinyMCEFileBrowserPlugin.1.0.0-developerbuild.nupkg

Mar 06, 2018

Comments

Quan Tran
Quan Tran Mar 6, 2018 11:25 AM

Great work !

This should be implemented in core product.

Thanks alot for sharing.

Arild Henrichsen
Arild Henrichsen Mar 6, 2018 12:22 PM

Great work!

That's exactly what I was looking for in this feature request: https://world.episerver.com/forum/developer-forum/Feature-requests/2014/10/upload-image-option-in-the-select-image-dialog/

Agree with the poster above - make sure it ends up in the core product ASAP!

Grzegorz Jeremias
Grzegorz Jeremias Mar 6, 2018 06:21 PM

Hi,

Does it take into account the scenario when creating the page/block and wants to add the image from there (during creation) +  additionally it should  go into "for this page/ block" location. Simply the page/block does not exist at that time (same with "for this page/ block" ), so in connection with mandatory image it is problematic to achieve target in one step.

Le Giang
Le Giang Mar 7, 2018 01:59 AM

@Grzegorz , during creation time of pages or blocks and you want to add images, then you cannot see the "For This Page/For This Block" in the tree. You can only choose the existing shared folders to upload your media files. Basically, the add-on does not change any behavior of the content selector dialog, just allow you to upload files while you are there.

Luc Gosso (MVP)
Luc Gosso (MVP) Mar 7, 2018 11:14 AM

Great work!! +1 to core

Mar 7, 2018 01:16 PM

You da man!

Aria Zanganeh
Aria Zanganeh Mar 9, 2018 01:01 AM

great job .. if the uploaded image would be selected automatically would make it even better

Please login to comment.
Latest blogs
Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog

Azure AI Language – Abstractive Summarisation in Optimizely CMS

In this article, I show how the abstraction summarisation feature provided by the Azure AI Language platform, can be used within Optimizely CMS to...

Anil Patel | Apr 18, 2024 | Syndicated blog

Fix your Search & Navigation (Find) indexing job, please

Once upon a time, a colleague asked me to look into a customer database with weird spikes in database log usage. (You might start to wonder why I a...

Quan Mai | Apr 17, 2024 | Syndicated blog

The A/A Test: What You Need to Know

Sure, we all know what an A/B test can do. But what is an A/A test? How is it different? With an A/B test, we know that we can take a webpage (our...

Lindsey Rogers | Apr 15, 2024

.Net Core Timezone ID's Windows vs Linux

Hey all, First post here and I would like to talk about Timezone ID's and How Windows and Linux systems use different IDs. We currently run a .NET...

sheider | Apr 15, 2024