简体   繁体   中英

How to Send Images to Backend API more than 1mb in nextJs

I'm trying to make my portfolio using NextJS and in creating Project Functionality I'm converting the images to base64 and sending them to API to upload them on Cloudinary and everything is good while the total size of the request is less than 1MB but when it's more than that I receive an error 413 that the Size must be less than 1MB. what should I do?

I Used an alternative solution by Uploading the Images from the Client Side and It works

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM