Skip to content

Commit

Permalink
fix(file): updated file size
Browse files Browse the repository at this point in the history
  • Loading branch information
StanGirard committed May 21, 2023
1 parent 96e89ce commit b76c63b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/app/upload/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function UploadPage() {
const { getRootProps, getInputProps, isDragActive, open } = useDropzone({
onDrop,
noClick: true,
maxSize: 1000000, // 1 MB
maxSize: 100000000, // 1 MB
});

return (
Expand Down Expand Up @@ -126,9 +126,6 @@ export default function UploadPage() {
</div>
)}
</Card>
<p className="opacity-50">
This is the demo mode, the max file size is 1MB
</p>
<div className="flex flex-col items-center justify-center gap-5">
<Button isLoading={isPending} onClick={uploadAllFiles} className="">
{isPending ? `Adding - ${files[pendingFileIndex].name}` : "Add"}
Expand Down

0 comments on commit b76c63b

Please sign in to comment.