drag drop

This commit is contained in:
Peter Hoppe
2023-01-12 15:43:44 +01:00
parent 25185d3758
commit 06849fe684
7 changed files with 43 additions and 12 deletions

View File

@ -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>
);