Skip to content

Fails to uploads HTML to AEM DAM #73

@samunplugged

Description

@samunplugged

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 '

Reproduce Scenario (including but not limited to)

Using @adobe/aem-upload to do the upload, try to upload HTML file. The issue is in this library, as it is ignoring mime type

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions