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

Handle erc-721 media flow #903

Open
kienvc opened this issue Sep 12, 2024 · 0 comments
Open

Handle erc-721 media flow #903

kienvc opened this issue Sep 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@kienvc
Copy link
Member

kienvc commented Sep 12, 2024

Try the flow to avoid download the content file if not necessary:

  • Use axios.head() to get response header of media url without download. The header should include Content-Type field
  • Filter content-type, only allow to handle content-type start with "image", "audio", "video", "model". If not, return null
  • If url is ipfs CID, download and upload to s3. Otherwise, if url is direct link, store it with its content-type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants