adobe / adobe/node-httptransfer
Fails to uploads HTML to AEM DAM
Open
- 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
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