How to restrict certain media types from being uploaded to custom media library folder in Sitecore 8 Content editor - sitecore8

i would to create two differents custom media folder templates in the Sitecore 8 media gallery:
Images Folder
Videos Folder
When clicking the upload files button, the first will accept only images, the second will be accept only videos. Which is the best way to do this?

There is a market place module for that, it's called Media Library Policeman.
Does exactly what you need.
You can download it here: https://marketplace.sitecore.net/en/Modules/Media_Library_Policeman.aspx

Related

How to Crop Multiple Uploads with Image Preview in Laravel 9?

I'm attempting to create a form in Laravel 9 (Repository pattern) that allows me to upload multiple images and preview them before allowing the user to crop the image and save both files (original and cropped).
Do you have any suggestions for how to approach this?
I guess you would need a combination of frontend javascript and fileupload on the laravel side. For javascript, you can look at filepond.
Alternatively, you can look at laravel filament. Filament is already using filepond as part of its form builder. It allows multiple files upload and resizing. Maybe you can start your approach from there.

How to set the source of an image field dynamically in a multisite environement in Sitecore?

I have a multisite instance in Sitecore using SCORE and I would like to set the source of a common template image field to point to its corresponding media library folder.
Example:
My instance has Site A and Site B
In Site A, if a user clicks on browse of an image field it should open the Site A media folder and the same for Site B.
By default, SCORE does not provide this possibility. If you want that the site media specific container is selected, you will need to implement a custom field with a custom token in order to resolve the datasource of the media path

Sitecore advanced upload option is missing from admin panel

I was trying to upload an image using Sitecore [Version 6.5] media library to my existing sitecore website. I see the Advance Upload Files option is completly missing. Later, I tried to install a default sitecore instance and I see the Advanced Upload option is there. But it is completely missing to the existing sitecore website.
Here, is the snapshot of my site where the Advanced upload option is completely missing:
And here is the snapshot of my default sitecore site where the Advanced upload option is there:
To fix this, I tried to change couple of configuration files. But still the same issue. The Advanced upload files option is completely missing. Did you face the same type of issue or if you know how to fix this issue, can you please share your thoughts. Or if I need to change any of the configuration files, then can you share your thoughts about that change of any of the configuration file?
Thanks
Upload files (Advanced) button is hidden in 2 cases:
Folder does not use Media Folder template. Just check your folders - maybe they use standard Folder template instead of Media Folder.
Upload.Classic setting is set to false. Open /sitecore/admin/showconfig.aspx and look for Upload.Classic value. When it's set to true, Sitecore uses flash upload instead.
If none of above is the case, maybe you have some custom code which hides Upload files (Advanced) button from you editors.

Media Library not listing any media items when browsed from Image Field of an item in content editor in sitecore

Media Library not listing any media items when browsed from Image Field of an item in content editor.
Steps to reproduce:
Create an item from Content Tree
Browse for an image from Image field.
Media Library UI displayed without previously uploaded images.
Expected : Media Library should display all media items available.
Note:
Inconsistency observed on multiple attempts(occasionally loads with a delay of 20 seconds - Is there any solution/fix to reduce this delay?)
Network is not an issue
User is having all the necessary roles and permissions.
Issue observed in all the browsers.
Version: Sitecore.NET 7.1 (rev. 130926)
Any help would be appreciated in knowing the root cause for Media Library not listing the media items.
Please see below attached screenshot -
Make sure your indexes have been built. The Sitecore 7.1 image UI uses the search API to display content, so if the indexes haven't been updated/build properly it will not show any data.
You can rebuild your indexes by logging into the desktop, click the Sitecore button in the bottom left, go to Control Panel and select Indexing. Click the Index Manager and follow the wizard to rebuild.
Have you specified a data source in the media field? That version of Sitecore has a known bug where such sources doesn't work. If so, ask Sitecore support for the workaround patch for this.
In Sitecore.Speak.ItemWebApi set allowanonymousaccess to true for the site name="shell"
This resolved the issue.
We have to enable the Sitecore.Speak.ContentSearch.Solr.config if using SOLR.

Django Bulk Zip upload

I want to upload images to a gallery app. I want the user to be able to either load images normaly, or upload on zip file containing all the images for that gallery. Then it must be uncompressed and all images must be added to that model. This is for the admin site.
Any ideas?
You could either use the existing django-app django-photologue which enables you to do that or have a look at how it is implemented there: https://code.google.com/p/django-photologue/source/browse/trunk/photologue/models.py.
If you see that photlogue is lacking some of the functionality you need, you could also subclass and extend photologue's models in your app!