PHD2 Log upload now supports .txt
This commit is contained in:
@@ -104,7 +104,7 @@ export default function PHD2UploadZone({ onUploaded }: Props) {
|
|||||||
<input
|
<input
|
||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
type="file"
|
type="file"
|
||||||
accept=".log,.csv"
|
accept=".txt,.log,.csv"
|
||||||
multiple
|
multiple
|
||||||
style={{ display: 'none' }}
|
style={{ display: 'none' }}
|
||||||
onChange={e => handleFiles(e.target.files)}
|
onChange={e => handleFiles(e.target.files)}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ function PHD2Section() {
|
|||||||
>
|
>
|
||||||
{uploading ? 'Parsing…' : '↑ Upload .log'}
|
{uploading ? 'Parsing…' : '↑ Upload .log'}
|
||||||
</div>
|
</div>
|
||||||
<input ref={inputRef} type="file" accept=".log,.csv" style={{ display: 'none' }}
|
<input ref={inputRef} type="file" accept=".txt,.log,.csv" style={{ display: 'none' }}
|
||||||
onChange={e => e.target.files?.[0] && handleFile(e.target.files[0])} />
|
onChange={e => e.target.files?.[0] && handleFile(e.target.files[0])} />
|
||||||
</div>
|
</div>
|
||||||
{uploadResult && (
|
{uploadResult && (
|
||||||
|
|||||||
Reference in New Issue
Block a user