mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user