nebulabroadcast/nebula

Unable to direct upload files

ianshade opened this issue · 0 comments

Hi! If I understand correctly, if I don't configure upload_storage and upload_dir, a file uploaded through the UI should end up "directly" under a file name derived from the asset id, e.g. media.dir/movies/000008.mxf for a movie asset with id 8. However, I'm hitting this assertion:

assert asset.local_path, f"{asset} does not have path set"
...and the upload fails:
image
The local_path getter seems to be checking the file existence, which can't be met for a file that hasn't been uploaded yet.
if not os.path.exists(full_path):
return None

Should the assertion perhaps check asset.path instead of asset.local_path, or am I totally misunderstanding something?