nextcloud / nextcloud/deck

Add attachment to card using base64

Open
#4,717 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: api feature: attachments Nice to have
Dominant language
JavaScript
Stars
1.4k
Forks
354
Avg merge
1d 10h
Merged PRs (30d)
43

Description

I've been attempting to do this for some time now. I may be missing some knowledge here, but I searched the documentation and came up empty handed. I'm trying to get an attachment from a drupal webform to be added to a card. Here is what I am submitting.

url: https://hostname/index.php/apps/deck/api/v1.0/boards/75/stacks/217/cards/722/attachments?type=file
data: {"file" : "data:application/pdf;base64,JVBERi0xL..."}

Here is the response
status:500
message:"No file uploaded or file size exceeds maximum of 16 GB"

Everything I have works fine if I use postman using multipart form encoded upload. But no matter what I did it always fails when using json. Am I doing something wrong here or is this just not supported?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the attachments API endpoint shown in the request and compare its JSON handling with the multipart form-encoded upload path. Verify whether the provided base64 PDF payload should be accepted; done means it creates an attachment successfully while preserving the existing multipart upload behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
drupal, javascript
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.