Skip to main content

Post categories

  • Drupal Tips & Tricks
  • Drupal Howtos
  • Drupal Themes
  • X Twitter
  • youtube
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact

Breadcrumb

  1. Home
  2. HowTos
  3. How to automatically sort uploaded images and files in Drupal 7 (Multiupload)

How to automatically sort uploaded images and files in Drupal 7 (Multiupload)

HowTos
October 22, 2013
Profile picture for user drupal
By drupal
  • facebook-f
  • twitter
  • envelope
  • print
15

By default, the multiupload imagefield and filefield don't sort the uploaded items by name. If you upload many images and files to your website, this can be a serious issue, since you have to sort the items manually. In Drupal 7, the issue can be resolved with a very simple change in the Multiupload Filefield Widget (7.x).

Solution
How to automatically sort uploaded images and files in Drupal 7 (Multiupload)

Step 1: Edit multiupload_filefield_widget.field.inc

Edit the file multiupload_filefield_widget.field.inc which can be found in the folder sites/all/modules/multiupload_filefield_widget

Change the following line:

$element_children = element_children($element, TRUE);

with

$element_children = element_children($element, FALSE);

Multiupload Filefield Widget
Configuration

Read more articles

Newer
How to hide an empty shopping cart with drupal commerce
Older
How to copy a Drupal site within 10 minutes
  • Log in to post comments
Profile picture for user drupal
drupal
15
1
min read
A- A+
  • facebook-f
  • twitter
  • envelope
  • print

Contact Drupal 4U

Get in touch for questions and our Drupal development, design and SEO services.

Contact Us

We aim to reply the latest within 48h.

About Drupal 4U

We are a group of Drupal designers, developers and webmasters and we launched this website to share our experience and knowledge with you. Drupal is a free software package that allows you to easily organize, manage and publish your content, with an endless variety of customization. Drupal is open source software maintained and developed by a very large community of developers and users.

  • X Twitter
  • youtube

Drupal Services

  • Drupal Web Design
  • Drupal Development
  • Drupal SEO
  • Drupal Migration

Drupal 4U

  • Services
  • Showcases
  • Themes
  • Blog
  • About

Drupal Links

  • Official Drupal Website
  • Drupal Answers
  • More Than Themes
  • Theme Forest
  • DXPR: Drupal for Marketers
2012 - 2025, Drupal 4U

Footer menu

  • Contact
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact
Clear keys input element