Unable to direct upload files
ianshade opened this issue · 0 comments
ianshade commented
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:
Line 54 in 86a30c1
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.nebula/backend/nebula/objects/asset.py
Lines 49 to 50 in 86a30c1
Should the assertion perhaps check
asset.path
instead of asset.local_path
, or am I totally misunderstanding something?