Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sha256 hash of files and processed files #348

Closed
insertish opened this issue Mar 29, 2024 · 4 comments
Closed

feat: sha256 hash of files and processed files #348

insertish opened this issue Mar 29, 2024 · 4 comments
Labels
crate:services:autumn crates/services/autumn enhancement New feature or request good first issue Good for newcomers

Comments

@insertish
Copy link
Member

No description provided.

@insertish insertish added enhancement New feature or request good first issue Good for newcomers labels Mar 29, 2024
@Rushmore75
Copy link

Could you add some more information to this, so I could potentially work on it?

@insertish
Copy link
Member Author

insertish commented Jul 27, 2024

When a file is uploaded, the server should generate a sha256 hash of it and store it in the database.
If the file is further processed, the server should also generate a sha256 hash for the output (e.g. after stripping EXIF data from a file / reprocessing a video / etc -- can interject right before it's uploaded to s3).

To store the hashes, I would just use a string array on the File database model, e.g. hash?: string[].

@Rushmore75
Copy link

Trying to read the codebase that's already here - Whats the tag part of the routes for? / what does it do?

@amycatgirl
Copy link
Contributor

tag corresponds to where the file will/is being used, for example

http://localhost:3000/attachments/1CXaLI6UcCYCRD2A5qI94RQL1lPf_egejPwAce5Xj5

attachments would be the tag of the file.

@insertish insertish transferred this issue from revoltchat/autumn Sep 29, 2024
@insertish insertish added the crate:services:autumn crates/services/autumn label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate:services:autumn crates/services/autumn enhancement New feature or request good first issue Good for newcomers
Projects
Archived in project
Development

No branches or pull requests

3 participants