Skip to content

on resource creation : double check if contentType return same extension as file extension  #146

@bourgeoa

Description

@bourgeoa

see SolidOS/folder-pane#5

on resource creation solid-ui in https://github.com/solid/solid-ui/blob/master/src/widgets/dragAndDrop.js/uploadFiles check if contentType match file extension L170-173

     var extension = mime.extension(theFile.type)
     if (theFile.type !== mime.lookup(theFile.name)) {
       suffix = '_.' + extension
       console.log('MIME TYPE MISMATCH -- adding extension: ' + suffix)

The same control is made in NSSv5.2.0 in resource-mapper.mapUrlToFile L108-110
The control should be deleted from solid-ui

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions