Skip to content

Commit

Permalink
Merge pull request #22 from maelaubert56:master
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
maelaubert56 authored Aug 3, 2024
2 parents 58b30f8 + cddabbc commit accd930
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions front/src/pages/admin/gallery/Add.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ const Add = () => {
<input
className="border-2 border-gray-300 w-full pl-2 py-1 text-sm"
type="file"
// accept media and video
accept="media/*,video/*"
// accept images and videos
accept="image/*, video/*"
onChange={(e) => setMedia({ ...media, media: e.target.files[0] })}
/>
</label>
Expand Down
2 changes: 1 addition & 1 deletion front/src/pages/admin/gallery/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const Edit = () => {
id="media"
className="border-2 border-gray-300 w-full pl-2 py-1 text-sm"
type="file"
accept="media/*,video/*"
accept="image/*, video/*"
onChange={(e) => setMedia({ ...media, media: e.target.files[0] })}
/>
<div className="flex flex-col gap-1 items-center rounded-lg border-2 border-gray-300 p-2">
Expand Down

0 comments on commit accd930

Please sign in to comment.