The names of the file-related fields are confusing: file, sitepath, coverpath, filepath (old). Their upload_to directories are also different. This has led to some difficult to catch behaviors. Files being uploaded or saved to different directories, or the metadata update being applied to different files (leaving others untouched).
The first step to clear this out is to define clearly the model fields. I'm torn between more descriptive names (but longer), or simpler short names:
The names of the file-related fields are confusing:
file
,sitepath
,coverpath
,filepath
(old). Theirupload_to
directories are also different. This has led to some difficult to catch behaviors. Files being uploaded or saved to different directories, or the metadata update being applied to different files (leaving others untouched).The first step to clear this out is to define clearly the model fields. I'm torn between more descriptive names (but longer), or simpler short names:
file
file
original
file_large
large
sitepath
file_medium
medium
file_small
small
coverpath
file_cover
cover
filepath
oldpath
See list of common resolutions.