Skip to content

* File Upload Improved * - _( Functionality )_ - One and ONLY one file #949

@charles-thompson-salesforce-com

Description

Is your feature request related to a problem? Please describe.
Not a problem, an enhancement

Describe the solution you'd like
This component allows a user to upload more than one file. The "Allow Multiple Files" control only limits the number of files in one upload operation, but the user can then just upload another file. We need to be able to limit the number of files per component to just one, as the OOB File Upload component does.

Ideally, you should not see the Upload Files button once a file has been uploaded in this case. Then it should reappear if the user removes the file previously uploaded.

Describe alternatives you've considered
Using the OOB component (which I DESPISE, simply because it has no confirmation that a file is uploaded and what the filename is).

Also considered downloading your component's code and "making it my own".
I've decided that is not in the interest of humanity.

Additional context
This image shows four File Upload components, as labelled. All of these components have had a file (or files) uploaded at this point.
image

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