Problem/Motivation

Call to undefined function format_size() in dropzonejs_tokens() (line 194 of /var/www/html/web/modules/contrib/dropzonejs/dropzonejs.module).

Steps to reproduce

Attempt to upload a file that utilizes dropzonejs_tokens() max_filesize.

Proposed resolution

format_size() is deprecated and is replaced by ByteSizeMarkup. https://www.drupal.org/node/2999981
https://www.drupal.org/project/webform/issues/3419661

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#5 3544986-5.patch702 bytespasha3371
#4 dropzonejs.patch702 bytespasha3371

Comments

pasha3371 created an issue. See original summary.

pasha3371’s picture

Issue summary: View changes
pasha3371’s picture

Title: format_size() is deprecated » format_size() is deprecated in Drupal 11
Issue summary: View changes
pasha3371’s picture

StatusFileSize
new702 bytes
pasha3371’s picture

StatusFileSize
new702 bytes
pasha3371’s picture

Assigned: Unassigned » pasha3371
Status: Active » Needs review
pasha3371’s picture

Priority: Normal » Minor

If someone wants to close this, that'd be great. I just realized I'm using this patch which introduced the line I'm updating the deprecation on, so I'm going to make the update over there.
https://www.drupal.org/project/dropzonejs/issues/2852808#comment-15479478

berdir’s picture

Status: Needs review » Closed (duplicate)

Closing as this is patching code that isn't in the module yet, per #7.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.