mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fixed filledFile back to hasFile
This commit is contained in:
parent
86c1f11bec
commit
7af633177a
|
@ -31,7 +31,7 @@ class AssetFilesController extends Controller
|
|||
|
||||
$destinationPath = config('app.private_uploads').'/assets';
|
||||
|
||||
if ($request->filledFile('file')) {
|
||||
if ($request->hasFile('file')) {
|
||||
foreach ($request->file('file') as $file) {
|
||||
$extension = $file->getClientOriginalExtension();
|
||||
$filename = 'hardware-'.$asset->id.'-'.str_random(8);
|
||||
|
|
|
@ -139,7 +139,7 @@ class AssetsController extends Controller
|
|||
}
|
||||
|
||||
// Create the image (if one was chosen.)
|
||||
if ($request->filledFile('image')) {
|
||||
if ($request->hasFile('image')) {
|
||||
$image = $request->input('image');
|
||||
|
||||
// After modification, the image is prefixed by mime info like the following:
|
||||
|
@ -769,7 +769,7 @@ class AssetsController extends Controller
|
|||
|
||||
$filename = '';
|
||||
|
||||
if ($request->filledFile('image')) {
|
||||
if ($request->hasFile('image')) {
|
||||
$file = $request->file('image');
|
||||
try {
|
||||
$destinationPath = config('app.private_uploads').'/audits';
|
||||
|
|
|
@ -419,7 +419,7 @@ class SettingsController extends Controller
|
|||
$setting->brand = 1;
|
||||
|
||||
// If they are uploading an image, validate it and upload it
|
||||
} elseif ($request->filledFile('image')) {
|
||||
} elseif ($request->hasFile('image')) {
|
||||
|
||||
if (!config('app.lock_passwords')) {
|
||||
$image = $request->file('image');
|
||||
|
|
Loading…
Reference in a new issue