Adds a new button for exam files - rename. Renames the file_name for the exam in the database, and updates the S3 object's Content-Disposition header. The old header is still cached by CloudFront for some time, but if it becomes a problem, we can just generate a new UUID (file_path) when doing the S3 copyObject operation (metadata can only be changed when uploading/copying, so it requires a copy operation anyways).
Access to rename is given to administrators and exam archive managers. Can change in the future if needed.
Closes #19
Adds a new button for exam files -
rename
. Renames thefile_name
for the exam in the database, and updates the S3 object'sContent-Disposition
header. The old header is still cached by CloudFront for some time, but if it becomes a problem, we can just generate a new UUID (file_path
) when doing the S3 copyObject operation (metadata can only be changed when uploading/copying, so it requires a copy operation anyways).Access to rename is given to administrators and exam archive managers. Can change in the future if needed.