Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file_progress_implementation() is deprecated and replaced with extension_loaded('uploadprogress') #913

Open
github-actions bot opened this issue Oct 20, 2024 · 0 comments
Labels

Comments

@github-actions
Copy link

https://www.drupal.org/node/3397577

Introduced in branch/version: 10.3.x / 10.3.0

file_progress_implementation() is deprecated and replaced with extension_loaded('uploadprogress').

As we only currently support the 'uploadprogress' extension, just checking extension_loaded('uploadprogress') simplifies this.

Before:

$implementation = file_progress_implementation()
if ($implementation === 'uploadprogress') {
  // do something
}

After:

if (extension_loaded('uploadprogress')) {
  // do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants