drag drop
This commit is contained in:
@ -75,6 +75,7 @@ function PreviewUpload({chgFile}:{chgFile: any}) {
|
||||
onChange={handleChange}
|
||||
accept="image/jpg,.gif,.png,.svg,.webp audio/wav,.mp3"
|
||||
/>
|
||||
<div className='prevUplImg'>
|
||||
<img
|
||||
src={file}
|
||||
style={{
|
||||
@ -84,6 +85,7 @@ function PreviewUpload({chgFile}:{chgFile: any}) {
|
||||
maxHeight: '300px',
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
{file && <p>Dimensions: {`${dimensionWidth} x ${dimensionHeight}`}</p>}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user