Created
August 8, 2016 16:39
-
-
Save rob1121/ff502b91c2796bd51b60b9aba76c6ea8 to your computer and use it in GitHub Desktop.
testing file upload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function file() | |
{ | |
return new Illuminate\Http\UploadedFile( | |
base_path('/tests/pdf/test.pdf'), | |
'test.pdf', | |
'application/pdf', | |
filesize(base_path('/tests/pdf/test.pdf')), | |
null, | |
true | |
); | |
} | |
//ofcourse we should place a dummy file, for this instance i placed test.pdf in /tests/pdf/ directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment