Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Enabled Deduplicated File Size Calculations #477

@bonedaddy

Description

@bonedaddy

This is a followup to #476, but to extend the deduplicated size calculation to file uploads. Currently when uploading files we use the size reported by the file handler that golang has. This size may be smaller once we upload it to IPFS.

A flow that would enable us to do this is as follows:

  • Check that the user account has enough credits to pay for the non-deduplicated file size
  • Deduct that from their accont
  • Add to IPFS
  • Get the deduplicated size after adding to IPFS
  • If smaller, return the difference in credits to the user account
  • Update their database record with the deduplicated size

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions