pecl-php-uploadprogress icon indicating copy to clipboard operation
pecl-php-uploadprogress copied to clipboard

Returned percentage of "uploadprogress_get_info(key)" is always -1 / txt file with upload progress info is not created in tmp folder

Open matttheek opened this issue 1 year ago • 0 comments

Hi,

I have tried to use the extension with PHP 8.2, locally with a Drupal10 Lando recipe, but also on an Ubuntu 22.04 server. The extension is installed, which is confirmed by: extension_loaded('uploadprogress') and via "php -m".

The function "uploadprogress_get_info(key)" always returns -1 (for "percentage") while uploading a file (large enough to spend at least 30 seconds). While the file uploads, php creates a file inside the tmp folder, but there is no txt file created by the uploadprogress extension. With phpinfo() I can see that the tmp directory setting of the extension matches the usual tmp directory.

Have you checked the extension with PHP 8.2 and apache?

Update: I see this could be related to: https://www.drupal.org/node/435678#comment-1492876

matttheek avatar Feb 12 '24 14:02 matttheek