Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

fix: Local files document root for local file upload bug in utils.py #278

Closed
wants to merge 1 commit into from

Conversation

nadinator
Copy link

Uses settings.LOCAL_FILE_DOCUMENT_ROOT if it's available. Otherwise trying to export such a file won't work.

Uses `settings.LOCAL_FILE_DOCUMENT_ROOT` if it's available. Otherwise trying to export such a file won't work.
@nadinator nadinator changed the title Fix bug in utils.py fix: Local files document root for local file upload bug in utils.py Feb 22, 2024
@makseq
Copy link
Member

makseq commented Jun 4, 2024

In LS we use the same env var:

LOCAL_FILES_DOCUMENT_ROOT = get_env('LOCAL_FILES_DOCUMENT_ROOT', default=os.path.abspath(os.sep))

vs in converter:

LOCAL_FILES_DOCUMENT_ROOT = get_env(
    'LOCAL_FILES_DOCUMENT_ROOT', default=os.path.abspath(os.sep)
)

@makseq makseq closed this Jun 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants