Increase asset max file size

Hi- Is it possible to raise the limit to 1GB? I’ve got some very large/hi res videos…

No, sorry. It could easily be abused and the costs would then not be covered by the current pricing for plans. I would have to switch to a pay per use pricing model, which is hard to implement to prevent that I lose money.

Sorry to hear… Where could i find the setting to change this on the local version? I’ve found the appsettings.json file and changed “maxSize”: 5024288000" however, after restarting IIS, i still get an error from squidex saying the file is too big (200mb video)

Are you sure, that it is coming from Squidex and not from IIS?

Thanks! I was able to increase the size in IIS, however the application gives me an error “failed to upload asset. Please try again” when the asset is over about 150MB. I’ve checked the web.config and the appsettings.json file- they have the same value of “maxSize”: 40949672950

Any clues for a next step?

thanks again

HI, I have no answer yet, but here are a few things we can try: https://stackoverflow.com/questions/38698350/increase-upload-file-size-in-asp-net-core

Hi Sebastian,

Where can I find the asset default size settings on CMS?
We cannot upload images 1.1MB (more than 1MB) on version 3.0.0 and getting the error as per image.
I’ve set the image field schema setting to allow 5MB but doesn’t seem to work.
Which version was the 50MB size you’ve added?

This is the 5MB limit: https://github.com/Squidex/squidex/blob/master/src/Squidex/appsettings.json#L209

1 Like

FYI, created a new bug report here:

thanks!!

There still seems to be a 5MB limit in the cloud hosted version. Is there a way to increase my account to 5OMB?

thanks very much

I can extend it. But please note that I do not charge for traffic yet and I would like to prevent it, but if people start to upload large files and distribute them like crazy it can become very expensive for me.

Understood, thanks. FWIW I’d be willing to pay for traffic

@Sebastian When will the limit be extended on the hosted version? Currently it’s still 5…

Yes, with the next deployment on Wednesday.

Done, increased to 50MB in the cloud.

this works, thank you very much!

1 Like

Hi Sebastian!

Can I increased to 50MB in docker image ?
I’m using a docker image (squidex/squidex:4.0.3).
Can I configure this in some environment variables in my squidex.yaml ?

Tks

I’m running into the same issue. I’m self-hosting using the squidex/squidex image and need to upload videos larger than 5mb.

Are you able to bump up the limit on the image?

Or is there a setting I can apply that will raise it?

Thanks,
Max

Hi @Max_M!
You can define limite in you file configuration.
See in squidex/appsettings.json at master · Squidex/squidex (github.com)

"assets": {
    /*
     * The default page size if not specified by a query.
     */
    "defaultPageSize": 200,

    /*
     * The maximum number of items to return for each query.
     * 
     * Warning: Use pagination and not large number of items.
     */
    "maxResults": 200,

    /*
     * The maximum file size in bytes. Default: 5MB
     */
    "maxSize": 5242880,

Or you can set a env in your yaml file like:
env:
- name: “assets__maxSize”
value: 5242880

Att

2 Likes

Hi @rhgs,

Thanks for the quick reply!

That did the trick!

Regards,
Max

2 Likes