From e48c24b132029398f55f62048923046a34259696 Mon Sep 17 00:00:00 2001 From: CarlosDB <97175145+cdb88@users.noreply.github.com> Date: Sun, 29 Oct 2023 19:20:48 +0100 Subject: [PATCH] improve downloader (#812) Will now use field.uploadfolder when defined Co-authored-by: CarlosDB --- py4web/utils/downloader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/py4web/utils/downloader.py b/py4web/utils/downloader.py index 2d523a767..0635660ea 100644 --- a/py4web/utils/downloader.py +++ b/py4web/utils/downloader.py @@ -36,6 +36,7 @@ def download(filename): fieldname = items.group("field") try: field = db[tablename][fieldname] + path = field.uploadfolder or path # Functionality to handle uploadseparate Field declaration. if field.uploadseparate: