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

Issue #5150: LiteSpeed uploadprogress detection. #3985

Open
wants to merge 2 commits into
base: 1.x
Choose a base branch
from

Conversation

quicksketch
Copy link
Member

Builds on the PR for backdrop/backdrop-issues#5524 (that must be merged first).

Fixes backdrop/backdrop-issues#5150.

@backdrop-ci
Copy link
Collaborator

Related to: backdrop/backdrop-issues#5150

@dragonbot
Copy link
Collaborator

Tugboat has finished building a preview for this pull request!

Website: https://pr3985-383evlobe2fnzemnjy5lcqtkwxvkertr.tugboat.qa/
Username: admin
Password: ed205e5eeaaa

$fastcgi = FALSE;
if ($is_apache) {
$fastcgi = strpos($server_software, 'mod_fastcgi') !== FALSE || strpos($server_software, 'mod_fcgi') !== FALSE;
}

$description = NULL;
if (!$is_apache && !$is_nginx) {
if (!$is_apache && !$is_nginx && !$is_litespeed) {
$value = t('Not enabled');
$description = t('Your server is not capable of displaying file upload progress. File upload progress requires an Apache server running PHP with mod_php or Nginx with PHP-FPM.');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this line (249) be updated also, or did you purposefully not add LiteSpeed here as it is not yet officially supported?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right! We should update the description too, IMO.

@yorkshire-pudding
Copy link
Member

@quicksketch - I've tested this on my LiteSpeed hosting and it works as expected. I've added a comment as to whether we should also update the text in line 249.

@dragonbot
Copy link
Collaborator

Tugboat has finished building a preview for this pull request!

Website: https://pr3985-383evlobe2fnzemnjy5lcqtkwxvkertr.tugboatqa.com/
Username: admin
Password: b3326344879b

This preview will automatically expire on the 20th of July, 2022.

@yorkshire-pudding
Copy link
Member

@quicksketch - I was made aware that this is still open as Dragon Bot emailed me to notify of a new tugboat preview. Should just need some text changing to get this over the line. Are you able to do this? I could try but I'm not quite sure how to take over an existing PR yet.

$fastcgi = FALSE;
if ($is_apache) {
$fastcgi = strpos($server_software, 'mod_fastcgi') !== FALSE || strpos($server_software, 'mod_fcgi') !== FALSE;
}

$description = NULL;
if (!$is_apache && !$is_nginx) {
if (!$is_apache && !$is_nginx && !$is_litespeed) {
$value = t('Not enabled');
$description = t('Your server is not capable of displaying file upload progress. File upload progress requires an Apache server running PHP with mod_php or Nginx with PHP-FPM.');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$description = t('Your server is not capable of displaying file upload progress. File upload progress requires an Apache server running PHP with mod_php or Nginx with PHP-FPM.');
$description = t('Your server is not capable of displaying file upload progress. File upload progress requires an Apache or LiteSpeed server running PHP with mod_php or Nginx with PHP-FPM.');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants