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

Feature Request: Uploading Files to Association's Record Without Removing Old Ones #66

Open
mariosobhy opened this issue Oct 11, 2023 · 0 comments

Comments

@mariosobhy
Copy link

Problem

Currently, when uploading files to an association's record using the ApolloUploadServer::Upload type, the old files are removed, which may not be the desired behavior for all use cases. This makes it challenging to append new files to an existing collection of files associated with a record.

Desired Behavior

I would like to request a new feature that allows uploading files to an association's record without removing the old ones. Instead, the new files should be appended to the existing collection of files.

Implementation Details

As a user, I would expect to be able to upload a new file to an association's record while preserving the old files. This can help in scenarios where multiple files need to be associated with a single record.

Example

Here is an example of the current argument definition:

argument :pictures, ApolloUploadServer::Upload, required: false,
         prepare: -> (file, _ctx) { create_blob(file) }, description: "It accepts a File object."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant