laravel-chunk-upload icon indicating copy to clipboard operation
laravel-chunk-upload copied to clipboard

Deprecated notice using ContentRangeUploadHandler.php

Open nico57r opened this issue 1 year ago • 2 comments

What steps will reproduce the problem?

Enable deprecated notice log on php

What is the expected result?

No deprecated

What do you get instead?

preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/instream-project-test.impactify.dev/build-9d9fc6b6/vendor/pion/laravel-chunk-upload/src/Handler/ContentRangeUploadHandler.php on line 113

Additional info

To resolv issue please change in

/vendor/pion/laravel-chunk-upload/src/Handler/ContentRangeUploadHandler.php

Line 70 : $contentRange = $this->request->header(self::CONTENT_RANGE_INDEX); To : $contentRange = $this->request->header(self::CONTENT_RANGE_INDEX, '');

Q A
This Package Version 1.5.2
Laravel Framework Version 10.9.0
PHP version 8.1.5
Operating system Ubuntu / Debian

nico57r avatar Jun 22 '23 11:06 nico57r

no news ?

nico57r avatar Dec 22 '23 10:12 nico57r

Thanks to @RTippin is is completed. Thank you.

https://github.com/pionl/laravel-chunk-upload/releases/tag/v1.5.4

pionl avatar Mar 25 '24 15:03 pionl