pionl / laravel-chunk-upload

The basic implementation for chunk upload with multiple providers support like jQuery-file-upload, pupload, DropZone and resumable.js
MIT License
617 stars 167 forks source link

Error File uploading Laravel 9.26.1 PHP 8.0.9 #139

Open pratikbarman opened 2 years ago

pratikbarman commented 2 years ago

What steps will reproduce the problem?

Error File uploading

Error Log

[2022-08-28 13:50:44] local.WARNING: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in C:\wamp\www\lara-ringtone\vendor\pion\laravel-chunk-upload\src\Handler\ContentRangeUploadHandler.php on line 116  
[2022-08-28 13:50:44] local.ERROR: Could not move the file "C:\wamp\tmp\php53DC.tmp" to "C:\wamp\www\lara-ringtone\storage\app\chunks\90_s Bollywood Romantic Songs Mashup _ Evergreen 90_s Bollywood Songs _ 90_s Hits _ Find Out Think(MP3_160K) (mp3cut.net)(2)(1).mp3-k3lPKBGalrELUIoZUNQ7sr5cosnIISE5KoUPcvV9-481536-90_sBollywoodRomanticSongsMashup_Evergreen90_sBollywoodSongs_90_sHits_FindOutThinkMP3_160Kmp3cutnet21mp3.1.part" (move_uploaded_file(): Unable to move "C:\wamp\tmp\php53DC.tmp" to "C:\wamp\www\lara-ringtone\storage\app\chunks\90_s Bollywood Romantic Songs Mashup _ Evergreen 90_s Bollywood Songs _ 90_s Hits _ Find Out Think(MP3_160K) (mp3cut.net)(2)(1).mp3-k3lPKBGalrELUIoZUNQ7sr5cosnIISE5KoUPcvV9-481536-90_sBollywoodRomanticSongsMashup_Evergreen90_sBollywoodSongs_90_sHits_FindOutThinkMP3_160Kmp3cutnet21mp3.1.part"). {"userId":1,"exception":"[object] (Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException(code: 0): Could not move the file \"C:\\wamp\\tmp\\php53DC.tmp\" to \"C:\\wamp\\www\\lara-ringtone\\storage\\app\\chunks\\90_s Bollywood Romantic Songs Mashup _ Evergreen 90_s Bollywood Songs _ 90_s Hits _ Find Out Think(MP3_160K) (mp3cut.net)(2)(1).mp3-k3lPKBGalrELUIoZUNQ7sr5cosnIISE5KoUPcvV9-481536-90_sBollywoodRomanticSongsMashup_Evergreen90_sBollywoodSongs_90_sHits_FindOutThinkMP3_160Kmp3cutnet21mp3.1.part\" (move_uploaded_file(): Unable to move "C:\\wamp\\tmp\\php53DC.tmp" to "C:\\wamp\\www\\lara-ringtone\\storage\\app\\chunks\\90_s Bollywood Romantic Songs Mashup _ Evergreen 90_s Bollywood Songs _ 90_s Hits _ Find Out Think(MP3_160K) (mp3cut.net)(2)(1).mp3-k3lPKBGalrELUIoZUNQ7sr5cosnIISE5KoUPcvV9-481536-90_sBollywoodRomanticSongsMashup_Evergreen90_sBollywoodSongs_90_sHits_FindOutThinkMP3_160Kmp3cutnet21mp3.1.part"). at C:\\wamp\\www\\lara-ringtone\\vendor\\symfony\\http-foundation\\File\\UploadedFile.php:177)

Additional info

Q A
This Package Version 1.5.0
Laravel Framework Version 9.26.1
PHP version 8.0.9
Operating system Windows 11
pionl commented 2 years ago

Are you using ResumableJS ? the PR fixed only this implementation

joaovicdev commented 1 year ago

Im with same problem here, im using ResumableJS (Laravel 10 with php 8.1)