Skip to content

Feature Request: Files and storage backend #10

@itsezc

Description

@itsezc

Is your proposal related to a problem?

Currently there is no easy way to handle file uploads via Alchemy.

Describe the solution you'd like

Storage backends

A storage backend for Alchemy needs to be implemented both on B2 and S3 allowing for the user to select the appropriate backend, file path; It should be possible to add multiple storage backends (even of the same type) i.e. accounts collection storing a profile picture on a S3 platform and orders collection storing an invoice PDF on a B2 platform while deliveries collection storing a shipping image on a different S3 platform.

Files

A scalar value for Files should be added to Alchemy that acts like an Object with the following properties:

type File {
        id: ID!
	name: String!
	url: String!
	created_at: DateTime!
}

The file should be uploaded and represented by this Scalar.

Describe alternatives you've considered

Not relevant

If the feature is approved, would you be willing to submit a PR?

Not relevant

Metadata

Metadata

Assignees

Labels

kind/enhancementFeature requests or enhancements to Alchemy

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions