Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

MAXIMUM_UPLOAD_size #50

Closed
dobefore opened this issue Oct 5, 2022 · 0 comments
Closed

MAXIMUM_UPLOAD_size #50

dobefore opened this issue Oct 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@dobefore
Copy link
Collaborator

dobefore commented Oct 5, 2022

there is a limit on upload size,when upload size(uncompressed)>250m.

After I insect the anki source code a bit , I find that we can change their values by set two env vars in add-on code .

Two env vars are MAX_UPLOAD_MEGS_COMP and MAX_UPLOAD_MEGS_UNCOMP .

For example,we can set uncompressed size to 5g,and compressed size 1g.

os.environ["MAX_UPLOAD_MEGS_UNCOMP"] =str(1024*5)
    # 1 G
os.environ["MAX_UPLOAD_MEGS_COMP"] =str(1024*1)

Note: this only works with versions 2.1.28 and above.

tsudoko/anki-sync-server#69

addon site https://ankiweb.net/shared/info/358444159

add-on hosted on github dobefore/SyncRedirect21@3781ab8

@dobefore dobefore added the bug Something isn't working label Oct 5, 2022
@dobefore dobefore closed this as completed Oct 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant