File size too large. Maximum is 10485760.
Olá amigos.
Estou tentando fazer um upload de uma imagem, mas tenho esse erro.
A imagem tem 1,2mb. O que devo fazer?
java.lang.RuntimeException: File size too large. Got 14213871. Maximum is 10485760.
at com.cloudinary.http42.UploaderStrategy.callApi(UploaderStrategy.java:116)
at com.cloudinary.Uploader.callApi(Uploader.java:22)
at com.cloudinary.Uploader.upload(Uploader.java:55)
at br.com.querofoodtruck.common.ControllerCloudnary.saveImage(ControllerCloudnary.java:46)
at br.com.querofoodtruck.busines.GaleriaLogic.persistGaleria(GaleriaLogic.java:114)
at br.com.querofoodtruck.controller.GaleriaController.enviaGaleriaFoodTruck(GaleriaController.java:48)
at br.com.querofoodtruck.controller.GaleriaController$Proxy$_$$_WeldClientProxy.enviaGaleriaFoodTruck(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
-
Hello friends.
I'm trying to upload an image, but I have this error.
The image is 1.2MB. What should I do?
java.lang.RuntimeException: File size too large. Got 14213871. Maximum is 10485760.
at com.cloudinary.http42.UploaderStrategy.callApi (UploaderStrategy.java:116)0 -
From the error it seems that the original image is 14213871 bytes (14MB). Your account currently has a default limit of 10MB per image, this is why this error is returned.
0 -
Compress it.
0
Post is closed for comments.
Comments
3 comments