Skip to content

alex-w0/file-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File storage

Redis client key structure

validBucketNames -> Contains the information about all existing buckets on AWS {bucketName}:s3:{uuid} -> Contains the information about a specific file object on AWS {bucketName}:s3Keys -> A list about all existing s3 keys

Tools

Redis client: https://resp.app/

Postman File upload example

POST Request Endpoint: http://localhost:3000/graphql

Add body -> form-data

Key (type text): operations Value:

{
  "operationName": "uploadFile",
  "variables": {
      "bucketNameArguments": {
          "bucketName": "your-bucket-name"
      }
  },
  "query": "mutation uploadFile($bucketNameArguments: BucketNameArgs!, $file: Upload!) {\n  uploadFile(\n    bucketNameArguments: $bucketNameArguments\n    data: {name: \"test\", file: $file}\n  ) {\n    s3ObjectKey\n    updatedAt\n  }\n}\n"
}

Key (type text): map Value:

{"0": ["variables.file"]}

Key (type file): 0 Value: Image.jpg

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published