Skip to content

Commit

Permalink
chore: add Developer Grant info
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Jul 11, 2024
1 parent 26f8884 commit 79bfcd9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# `ic-oss`
🗂 A decentralized Object Storage Service on the Internet Computer.

💝 This project received a **$25k Developer Grant** from the [DFINITY Foundation](https://dfinity.org/grants).

## Overview

`ic-oss` is a fully open-source decentralized object storage service running on the Internet Computer. It provides a simple and efficient way to store and retrieve files, supports large files, and offers unlimited horizontal scalability. It can serve as a reliable decentralized file infrastructure for NFT, chain blocks, verifiable credentials, blogs, documents, knowledge bases, games and other decentralized applications.
Expand All @@ -17,7 +19,7 @@ In decentralized enterprise applications, `ic-oss` will be an essential infrastr
- [x] Supports large file uploads and downloads through file sharding, concurrent high-speed uploads, resumable uploads, and segmented downloads.
- [x] Provides data verification based on ICP's verification mechanisms to ensure file integrity during reading.
- [x] Supports file directory tree.
- [ ] Access control with permissions for public, private, read-only, and write-only for files, folders, and buckets.
- [x] Access control with permissions for public, private, read-only, and write-only for files, folders, and buckets.
- [ ] Based on a file bucket and cluster architecture, with each bucket corresponding to a ICP canister, allowing for unlimited horizontal scalability.
- [ ] Compatible with S3 core API protocol and supports S3 SDK.
- [ ] Implements file encryption storage using ICP's vetKeys mechanism.
Expand Down
4 changes: 4 additions & 0 deletions src/ic_oss_bucket/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,10 @@ pub mod fs {
None => Err(format!("file not found: {}", change.id)),
Some(mut file) => {
checker(&file)?;

if file.size != file.filled {
Err("file not fully uploaded".to_string())?;
}
let prev_hash = file.hash;
let status = change.status.unwrap_or(file.status);
if file.status > 0 && status > 0 {
Expand Down

0 comments on commit 79bfcd9

Please sign in to comment.