inflearn logo
강의

Course

Instructor

Next.js with Spring Boot

Product Registration(1)

강의 자료 수정 요청 - Next.js 16 버전의 파일 업로드 사이즈 제한 설정

Resolved

211

not

10 asked

0

Next 최신 버전으로 수업 듣고 있습니다.

 

image.png

강의 자료에 이 파일이 들어가있는데 오히려 이 설정을 적용하면 1MB 제한이 걸려 업로드 되지 않습니다

 

발생된 오류 메시지

Error: Body exceeded 1 MB limit.
To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit
    at ignore-listed frames {
  statusCode: 413
}
⨯ uncaughtException: Error: Body exceeded 1 MB limit.
To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit
    at ignore-listed frames {
  statusCode: 413
}
⨯ uncaughtException:  Error: Body exceeded 1 MB limit.
To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit
    at ignore-listed frames {
  statusCode: 413
}
⨯ Error: Body exceeded 1 MB limit.
To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit
    at ignore-listed frames {
  statusCode: 413,
  digest: '2270266421@E394'
}

강의에서 알려주는 설정으로 해야 1MB 이상 이미지가 정상 업로드 되었습니다.

  experimental: {
    // 'experimental' 아래에 serverActions를 정의해야 합니다.
    serverActions: {
      bodySizeLimit: "1000mb", // 원하는 크기로 조절하세요 (예: '50mb', '100mb')
    },
  },

 

강의 자료 수정이 필요할 것 같습니다.

javascript react spring-boot jpa next.js

Answer 1

0

zk202308a5410

알려주셔서 감사합니다

Sequential Thinking API Error

0

30

1

회원 가입 폼 실습에서 value? 개념이 헷갈려요

0

30

2

컴맹도 들을수있는거맞아요?..

0

37

2

꼭 스탭 순서대로 봐야 하나요?

0

27

2

스탭마다 새로 만들면 안되나요?

0

25

2

cursor 에서 붙여넣기 옵션

0

22

2

login expired. please run / login 메세지가 뜹니다.

0

23

1

교안자료 다운로드 방법 문의

0

28

1

노드 js 관련 질문이 있습니다

0

38

2

자료 관련 질문?

0

32

1

Fanout on Read 의 학습 코드에서 질문 있어요

1

40

1

8.3 강의에서 createPortal을 삭제하지 않은 이유가 궁금합니다.

0

27

2

장바구니 질문

0

46

1

업데이트는 안되는건가요 ???

0

64

1

수업 소스가 강의 시작전 코드만 있는게 맞나요?

0

42

2

소셜정보 수정

0

113

2

Actions formData 질문.

0

97

1

revalidatePath('/product/catalog/1')

0

111

2

이미지 변환

0

157

2

todoPagingCP.tsx에서

0

101

1

21강 이미지 출력이 안됩니다.

0

171

1

강의를 들을 때 타입스크립트 지식이 필요한가요?

0

115

1

서버 Run 실행을 할수가 없습니다. 어떻게 해야 할까요?

0

206

3

한글로 할 일 등록시 리스트 업데이트가 되지않습니다.

0

149

2