Did Wix update size limits to uploaded files?

I’ve had a site that uploads files to my media manager using the upload() api for a while now. Everything worked great, till today when I find that I’m not able to upload() certain files. I get a 413 “too large” error.

Here’s the thing-- those files are less than 2MB and I can’t see why that would be happening. I can manually upload these files to my media manager just fine.

I can also programmatically upload() 100kb images with no issue. Did something change? It used to work.

Everything is formatted in B64.

@Dan_Suhr Thanks for the resource! Yeah it’s supposed to be a 25mb upload limit for images, and I’m not even using 10% of that with my files. Still getting a 413 error for some reason.

maybe something in the api has changed

@Dan_Suhr Thanks for the help :slight_smile: – I have checked those resources out, but don’t see a change. One think that is puzzling me is that I tried uploading files to another server and was greeted with the same 413 message. Neither wix nor the other server have a size limit anywhere near my file size.

What I’m doing is:

  1. Getting base64 of an image on the client side (works!)
  2. Trying to send that base64 to wix media manager using a webmethod (works for very small images but gives 413 error for anything over 1MB or so.)

OR

Trying to send to a third party with a function imported from the backend. Same result.

Is there some sort of service that my requests are going through that might be limiting? As far as I can tell I’m just doing straightforward API requests but maybe something about how Wix handles stuff executing from the backend could be messing me up here?

Update: I got it to work by taking all image upload code out of /backend

Not sure what exactly that had to happen for, still working on how to fix it.