kodadot / kodadot/workers

Add query param to cache uploads

Open
#159 0 comments 0 reactions 0 assignees View on GitHub
p2 pinning
Dominant language
TypeScript
Stars
11
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Add query param `cache` to mark if the content should be cached or not

If query param is present images should be uploaded to cfi and other content to R2

Tasks:

1. In `/pinFile` handler
2. If `cache=true`
3. in mime-type starts with `image` save to cfi
4. else save to R2

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the `/pinFile` handler and trace the existing upload paths and MIME-type handling. Implement the stated `cache=true` behavior, then verify that images go to cfi and other content goes to R2; the issue does not name a test or file to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.