Skip to content
This repository has been archived by the owner on Jun 5, 2022. It is now read-only.

Default Images Array #190

Open
Shekhar7860 opened this issue Sep 18, 2020 · 2 comments
Open

Default Images Array #190

Shekhar7860 opened this issue Sep 18, 2020 · 2 comments

Comments

@Shekhar7860
Copy link

Hello, please tell me how to set default images array inside this library?

@vbnetgenius
Copy link

Use defaultImages prop

@aramkoukia
Copy link

Yes as mentioned defaultImages works.

    <ImageUploader
      withIcon
      withPreview
      onChange={onDrop}
      imgExtension={['.pdf', '.jpg', '.png', '.gif']}
      maxFileSize={5242880}
      label="Max file size: 5 MB. Accepted: pdf, jpg, gif, png"
      defaultImages={existingFiles}
    />

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants