Implement user editable "File Type" field #9

Open
opened 2026-05-24 07:21:37 +00:00 by sanj · 0 comments
Owner

Right now, we get mime-type derived from the file, which can also sometimes be wrong based on the file type. We need a simple user-editable field for a user to mark whether an item is Audio, Video or Document. This should be pre-populated / derived based on the mime-type, and left null where this is not possible to do.

So, roughly:

  • Add a field called "File Type" with 4 options: null (Unknown), Audio, Video, Document
  • Write a script to pre-populate this intelligently based on the mime-type
  • Add this to the curate page

@zi - do we need to distinguish between "Document" and "Image"? Are these 3 types roughly correct?

Right now, we get mime-type derived from the file, which can also sometimes be wrong based on the file type. We need a simple user-editable field for a user to mark whether an item is Audio, Video or Document. This should be pre-populated / derived based on the mime-type, and left null where this is not possible to do. So, roughly: - Add a field called "File Type" with 4 options: null (Unknown), Audio, Video, Document - Write a script to pre-populate this intelligently based on the mime-type - Add this to the curate page @zi - do we need to distinguish between "Document" and "Image"? Are these 3 types roughly correct?
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
CAMP/phs#9
No description provided.