react-images-upload icon indicating copy to clipboard operation
react-images-upload copied to clipboard

Default Images Array

Open Shekhar7860 opened this issue 5 years ago • 2 comments

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

Shekhar7860 avatar Sep 18 '20 04:09 Shekhar7860

Use defaultImages prop

vbnetgenius avatar Dec 19 '20 14:12 vbnetgenius

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}
    />

aramkoukia avatar Dec 25 '20 23:12 aramkoukia