Update upload filename length limit from 128 to 256, which is aligned with os (#7971)

### What problem does this PR solve?

Change filename length limit from 128 to 256

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2025-05-30 14:25:59 +08:00
committed by GitHub
parent 241fdf266a
commit 31f4d44c73
4 changed files with 5 additions and 4 deletions

View File

@ -108,7 +108,7 @@ def test_invalid_name_dataset(get_auth):
long_string = ""
while len(long_string) <= DATASET_NAME_LIMIT:
while len(long_string.encode("utf-8")) <= DATASET_NAME_LIMIT:
long_string += random.choice(string.ascii_letters + string.digits)
res = create_dataset(get_auth, long_string)