adobe / adobe/node-httptransfer

Fails to uploads HTML to AEM DAM

Open
#73 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17
Forks
11
PR merge metrics
No merged PRs in 30d

Description

### Expected Behaviour
The AEMUpload class should allow to upload HTML files to DAM

### Actual Behaviour
HTML files fail to upload because AEM tries to validate them as JSON files. Seeing the error:

`Upload START 'index.html': 319901 bytes
Upload FAILED 'index.html': 'Unexpected token < in JSON at position 0 while parsing near '

Contributor guide

Open the contributing guide

Research direction

Start in the AEMUpload class and trace the upload path used by @adobe/aem-upload, focusing on where the file MIME type is ignored and HTML is treated as JSON. Reproduce with an HTML file such as index.html; done means the upload reaches AEM DAM without the JSON parsing error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.