[Workaround provided] Bug: passing large array to Wix backend results in function not being called

Hi all,

I believe I discovered a bug with the Wix frontend-backend integration.

I wanted to upload an image to Wix Media and to do that, I have to pass an array with 100k entries to a backend function to upload. To my surprise, I discovered that the backend function never runs. However, if I don’t pass the array, it runs normally.

I then tried passing only the 40,000 elements of the array and the function runs, but if I pass 50,000 elements, the function doesn’t run.

My workaround is to convert the array to string first using .toString() then in the backend code, do a .split(‘,’) to convert it back into an array.

Hope this is useful to someone.

Spoke too soon…I tried with a larger image (millions of entries instead of just 100k) and now .toString() won’t work either. The function in the backend does not run.