Limit on saving image

Hi,

Using the instagram clone app, I am posting an image which is only 2.3Mb, but I am getting this error about not being able to convert more than 2.8Mb (I thought the limit was 10Mb anyway):
10:13:00 | SERVER_CODE | INFO | [14057] error - Error: Cannot save files created from byte array when the payload exceeds 2,800,000 bytes at new ResponseError (/usr/local/lib/node_modules/backendless-coderunner/node_modules/backendless-request/lib/index.js:42:116) at checkStatus (/usr/local/lib/node_modules/backendless-coderunner/node_modules/backendless-request/lib/index.js:237:9) at processTicksAndRejections (internal/process/task_queues.js:97:5) { code: 6016, status: 400, headers: { ‘access-control-allow-origin’: ‘*’, ‘access-control-allow-methods’: ‘POST, GET, OPTIONS, PUT, DELETE, PATCH’, date: ‘Fri, 11 Jun 2021 08:13:00 GMT’, connection: ‘close’, ‘content-type’: ‘application/json’, ‘content-length’: ‘123’ }, body: { code: 6016, message: ‘Cannot save files created from byte array when the payload exceeds 2,800,000 bytes’, errorData: {} } }

Thanks,
Toby

Hello @Toby_Oliver

The issue has been fixed, you can create a new app based on this blueprint to get the changes.
Also, I’ve changed the target path for uploaded files:
from: photos/${ generateUUID.short() }.jpg
// photos/ab936a83.jpg

to: users/${currentUserId}/posts/${ generateUUID.long() }.jpg
// users/CDA5F164-CE9D-827C-FFCD-277D0F6C9600/posts/147ad518-8fe7-c7bc-c756-a528e13f5ce5.jpg

Regards, Vlad

awesome thanks