Skip to content

Commit

Permalink
improve downloader (#812)
Browse files Browse the repository at this point in the history
Will now use field.uploadfolder when defined

Co-authored-by: CarlosDB <cdbaron1969@gmail.com>
  • Loading branch information
cdb88 and CarlosDB authored Oct 29, 2023
1 parent a762f6b commit e48c24b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions py4web/utils/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e48c24b

Please sign in to comment.