Skip to content

Commit 5c803e3

Browse files
author
Martin Kluska
committed
changed the UploadFile usage to laravels http UploadFile class
1 parent 52a618a commit 5c803e3

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

src/Handler/AbstractHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace Pion\Laravel\ChunkUpload\Handler;
33

44
use Illuminate\Http\Request;
5-
use Symfony\Component\HttpFoundation\File\UploadedFile;
5+
use Illuminate\Http\UploadedFile;
66

77
/**
88
* The handler that will detect if we can continue the chunked upload

src/Handler/ContentRangeUploadHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace Pion\Laravel\ChunkUpload\Handler;
33

44
use Illuminate\Http\Request;
5-
use Symfony\Component\HttpFoundation\File\UploadedFile;
5+
use Illuminate\Http\UploadedFile;
66

77
/**
88
* Class JqueryUploadReceiver

src/Receiver/FileReceiver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Pion\Laravel\ChunkUpload\Save\AbstractSave;
77
use Pion\Laravel\ChunkUpload\Save\ChunkSave;
88
use Pion\Laravel\ChunkUpload\Save\SingleSave;
9+
use Illuminate\Http\UploadedFile;
910

1011
class FileReceiver
1112
{
@@ -15,7 +16,7 @@ class FileReceiver
1516
protected $request;
1617

1718
/**
18-
* @var \Symfony\Component\HttpFoundation\File\UploadedFile|null
19+
* @var UploadedFile|null
1920
*/
2021
protected $file;
2122

src/Save/AbstractSave.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use Pion\Laravel\ChunkUpload\Handler\AbstractHandler;
55
use Symfony\Component\HttpFoundation\File\File;
6-
use Symfony\Component\HttpFoundation\File\UploadedFile;
6+
use Illuminate\Http\UploadedFile;
77

88
/**
99
* Class AbstractSave

src/Save/ChunkSave.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use Pion\Laravel\ChunkUpload\Exceptions\ChunkSaveException;
55
use Pion\Laravel\ChunkUpload\Handler\AbstractHandler;
6-
use Symfony\Component\HttpFoundation\File\UploadedFile;
6+
use Illuminate\Http\UploadedFile;
77

88
class ChunkSave extends AbstractSave
99
{

0 commit comments

Comments
 (0)