Skip to content

Commit

Permalink
Merge pull request #17 from tomatophp/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
3x1io authored Mar 27, 2024
2 parents abe2274 + b540598 commit 0506832
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Modules/CircleXO/App/Http/Controllers/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public function updateMedia(Request $request)

if($request->hasFile('avatar') && $request->file('avatar')->getClientOriginalName() !== 'blob'){
$request->validate([
'avatar' => 'sometimes|image|mimes:jpeg,png,jpg,gif,svg|max:2048',
'avatar' => 'sometimes|image|mimes:jpeg,png,jpg,gif,svg,webp|max:2048',
]);

$account->clearMediaCollection('avatar');
Expand All @@ -306,7 +306,7 @@ public function updateMedia(Request $request)

if($request->hasFile('cover') && $request->file('cover')->getClientOriginalName() !== 'blob'){
$request->validate([
'cover' => 'sometimes|image|mimes:jpeg,png,jpg,gif,svg|max:2048',
'cover' => 'sometimes|image|mimes:jpeg,png,jpg,gif,svg,webp|max:2048',
]);

$account->clearMediaCollection('cover');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function store(Request $request): RedirectResponse
{
$request->validate([
"title" => "required|string|max:255",
"image" => "nullable|mimes:jpeg,png,jpg,gif,svg|max:2048",
"image" => "nullable|mimes:jpeg,png,jpg,gif,svg,webp|max:2048",
"type" => "required|string|in:link,product,service,skill,portfolio,review,post,music,video,game",
]);

Expand Down Expand Up @@ -121,7 +121,7 @@ public function update(Request $request, AccountListing $listing): RedirectRespo
{
$request->validate([
"title" => "required|string|max:255",
"image" => "nullable|mimes:jpeg,png,jpg,gif,svg|max:2048",
"image" => "nullable|mimes:jpeg,png,jpg,gif,svg,webp|max:2048",
"type" => "required|string|in:link,product,service,skill,portfolio,review,post,music,video,game",
]);

Expand Down

0 comments on commit 0506832

Please sign in to comment.