Serverside Media Check #32

Closed
opened 2024-11-15 18:18:21 -05:00 by rainbownapkin · 4 comments
rainbownapkin commented 2024-11-15 18:18:21 -05:00 (Migrated from gitlab.com)
No description provided.
rainbownapkin commented 2024-11-15 18:18:21 -05:00 (Migrated from gitlab.com)

added #30 as parent issue

added #30 as parent issue
rainbownapkin commented 2024-12-03 07:28:01 -05:00 (Migrated from gitlab.com)

Looks like the best way to implement embedded media checks for chat is to send a HEAD request to get file size, and npm module 'file-type' for file-type checking. (not big on adding modules, but it's best to use battle-tested security/validation code.)

Looks like the best way to implement embedded media checks for chat is to send a HEAD request to get file size, and npm module 'file-type' for file-type checking. (not big on adding modules, but it's best to use battle-tested security/validation code.)
rainbownapkin commented 2024-12-16 06:59:36 -05:00 (Migrated from gitlab.com)

Downloading and checking with file-type seems excessive and will cause performance issues.

If lying servers become an issue in the future we can rectify it then.

Downloading and checking with file-type seems excessive and will cause performance issues. If lying servers become an issue in the future we can rectify it then.
rainbownapkin (Migrated from gitlab.com) closed this issue 2024-12-16 09:02:44 -05:00
rainbownapkin commented 2024-12-16 09:02:45 -05:00 (Migrated from gitlab.com)

Serverside media check added: 23df4f88f9

Serverside media check added: 23df4f88f92741d4a968471b2db90c6d536d17dc
Sign in to join this conversation.
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: rainbownapkin/canopy#32
No description provided.