backend/image_markuper/utils/files.py

8 lines
177 B
Python

import os
from utils.generators import generate_charset
def media_upload_path(instance, filename):
return os.path.join(f"uploads/dicom/{generate_charset(7)}/", filename)