rozumny procenta

This commit is contained in:
Martin Quarda 2024-10-07 12:17:30 +02:00
parent c257afc15e
commit 3c367660fa

View File

@ -162,7 +162,7 @@ class Main extends Component {
<div>
<form id="form" action="/api/upload_files" class="container" onSubmit={(e) => this.onSubmit(e)}>
<label>Zvolte soubory <input type="file" name="files" accept=".jpg,.png,.webp,.webm,.avi,.mkv,.mp4" multiple={true} onChange={(e)=> this.handleChangeFiles.bind(this)(e)}/></label>
<button type="submit" class="btn btn-primary">Nahrát</button> <b>progress: {this.state.uploadProgress * 100}%</b>
<button type="submit" class="btn btn-primary">Nahrát</button> <b>progress: {(this.state.uploadProgress * 100).toFixed(1)}%</b>
</form>
</div>}
{this.state.page == "#payment" &&