mirror of
				https://github.com/linuxserver/Heimdall.git
				synced 2025-10-31 21:17:44 +09:00 
			
		
		
		
	Fix upload paths
This commit is contained in:
		| @@ -195,7 +195,7 @@ class ItemController extends Controller | |||||||
|         ]); |         ]); | ||||||
|  |  | ||||||
|         if ($request->hasFile('file')) { |         if ($request->hasFile('file')) { | ||||||
|             $path = $request->file('file')->store('icons'); |             $path = $request->file('file')->store('icons', 'public'); | ||||||
|             $request->merge([ |             $request->merge([ | ||||||
|                 'icon' => $path, |                 'icon' => $path, | ||||||
|             ]); |             ]); | ||||||
|   | |||||||
| @@ -77,7 +77,7 @@ class SettingsController extends Controller | |||||||
|                     ); |                     ); | ||||||
|                 } |                 } | ||||||
|  |  | ||||||
|                 $path = $request->file('value')->store('backgrounds'); |                 $path = $request->file('value')->store('backgrounds', 'public'); | ||||||
|  |  | ||||||
|                 if ($path === null) { |                 if ($path === null) { | ||||||
|                     throw new \Exception('file_not_stored'); |                     throw new \Exception('file_not_stored'); | ||||||
|   | |||||||
| @@ -58,7 +58,7 @@ class TagController extends Controller | |||||||
|         ]); |         ]); | ||||||
|  |  | ||||||
|         if ($request->hasFile('file')) { |         if ($request->hasFile('file')) { | ||||||
|             $path = $request->file('file')->store('icons'); |             $path = $request->file('file')->store('icons', 'public'); | ||||||
|             $request->merge([ |             $request->merge([ | ||||||
|                 'icon' => $path, |                 'icon' => $path, | ||||||
|             ]); |             ]); | ||||||
| @@ -123,7 +123,7 @@ class TagController extends Controller | |||||||
|         ]); |         ]); | ||||||
|  |  | ||||||
|         if ($request->hasFile('file')) { |         if ($request->hasFile('file')) { | ||||||
|             $path = $request->file('file')->store('icons'); |             $path = $request->file('file')->store('icons', 'public'); | ||||||
|             $request->merge([ |             $request->merge([ | ||||||
|                 'icon' => $path, |                 'icon' => $path, | ||||||
|             ]); |             ]); | ||||||
|   | |||||||
| @@ -68,7 +68,7 @@ class UserController extends Controller | |||||||
|         } |         } | ||||||
|  |  | ||||||
|         if ($request->hasFile('file')) { |         if ($request->hasFile('file')) { | ||||||
|             $path = $request->file('file')->store('avatars'); |             $path = $request->file('file')->store('avatars', 'public'); | ||||||
|             $user->avatar = $path; |             $user->avatar = $path; | ||||||
|         } |         } | ||||||
|  |  | ||||||
| @@ -128,7 +128,7 @@ class UserController extends Controller | |||||||
|         } |         } | ||||||
|  |  | ||||||
|         if ($request->hasFile('file')) { |         if ($request->hasFile('file')) { | ||||||
|             $path = $request->file('file')->store('avatars'); |             $path = $request->file('file')->store('avatars', 'public'); | ||||||
|             $user->avatar = $path; |             $user->avatar = $path; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user