mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-14 09:19:40 +00:00
increase max file uploading number (#1794)
This commit is contained in:
parent
66282054fe
commit
ef5cb8d671
2 changed files with 3 additions and 1 deletions
|
@ -25,6 +25,7 @@ from pypdf import PdfReader
|
|||
from pypdf.errors import PdfReadError
|
||||
|
||||
from skyvern.config import settings
|
||||
from skyvern.constants import MAX_UPLOAD_FILE_COUNT
|
||||
from skyvern.exceptions import (
|
||||
ContextParameterValueNotFound,
|
||||
DisabledBlockExecutionError,
|
||||
|
@ -1429,7 +1430,7 @@ class UploadToS3Block(Block):
|
|||
if os.path.isdir(self.path):
|
||||
# get all files in the directory, if there are more than 25 files, we will not upload them
|
||||
files = os.listdir(self.path)
|
||||
if len(files) > 25:
|
||||
if len(files) > MAX_UPLOAD_FILE_COUNT:
|
||||
raise ValueError("Too many files in the directory, not uploading")
|
||||
for file in files:
|
||||
# if the file is a directory, we will not upload it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue