Add support for built-in PHP session upload progress

Created on 5 May 2012, about 12 years ago
Updated 17 November 2023, 7 months ago

Problem/Motivation

Right now, upload progress only works if you're running in mod_php mode (with the PECL extesion uploadprogress). Sadly mod_php only works with Apache.

Steps to reproduce

Upload a file while not using mod_php (by disabling it or using something like Nginx)
Notice that there's no upload progress bar

Steps with MR changes:
1. Ensure you are running NGINX(I(@yash.rode) am using Laravel Valet)
2. You should be able to see Upload progress Enabled on the Status report page.
3. Go to structure/types/manage/article/form-display and click the gear icon in front of image
4. and change the Progress indicator to Bar with progress meter
5. When you try to upload an image to an article, you should see a progress bar.

I used PHP 8.1, NGINX using Laravel Valet.

Proposed resolution

PHP >=5.3 has a built-in upload progress http://php.net/manual/en/session.upload-progress.php that we should support.

Remaining tasks

N/A

User interface changes

N/A, only restoring existing functionality to all users

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

📌 Task
Status

Needs work

Version

11.0 🔥

Component
File system  →

Last updated about 5 hours ago

Created by

🇭🇰Hong Kong droplet

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024