-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initialFiles not shown up #87
Comments
i am also facing some issue. |
I think I've figured out the problem. It looks like the ternary that decides whether to show a real image or this icon uses this helper function. That function is returning "false" incorrectly on your image and mine because this other helper function is adding an extension even if the file has one in the URL. For example your file is being named I'm not sure what the best solution here is, maybe checking to see if the filename already has an extension before adding it. |
This logic change to the
|
Image does not need to have any extension to be an image. |
Fix at #101 |
I am getting an issue on Initial Files do not show up ,it shows like
instead of actual image. Below is the code that i am using
<DropzoneArea acceptedFiles={['image/jpeg', 'image/png', 'image/bmp']} showPreviews={true} showPreviewsInDropzone={true} showFileNamesInPreview={true} initialFiles={[
https://images.pexels.com/photos/1909603/pexels-photo-1909603.jpeg`]}filesLimit={1}
maxFileSize={1000 * 1000}
dropzoneText="Advertisement Image"
onChange={changeAdImage}
The text was updated successfully, but these errors were encountered: