mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
remove application/octet-stream for OSX
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import React, { Fragment } from 'react';
|
import React, { Fragment } from "react";
|
||||||
import { SingleUpload } from '../components';
|
import { SingleUpload } from "../components";
|
||||||
import { Box } from '@material-ui/core';
|
import { Box } from "@material-ui/core";
|
||||||
|
|
||||||
interface UploadFirmwareFormProps {
|
interface UploadFirmwareFormProps {
|
||||||
uploading: boolean;
|
uploading: boolean;
|
||||||
@@ -10,7 +10,6 @@ interface UploadFirmwareFormProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class UploadFirmwareForm extends React.Component<UploadFirmwareFormProps> {
|
class UploadFirmwareForm extends React.Component<UploadFirmwareFormProps> {
|
||||||
|
|
||||||
handleDrop = (files: File[]) => {
|
handleDrop = (files: File[]) => {
|
||||||
const file = files[0];
|
const file = files[0];
|
||||||
if (file) {
|
if (file) {
|
||||||
@@ -23,13 +22,20 @@ class UploadFirmwareForm extends React.Component<UploadFirmwareFormProps> {
|
|||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Box py={2}>
|
<Box py={2}>
|
||||||
Upload a new firmware file (.bin or .bin.gz) below to replace the existing firmware.
|
Upload a new firmware file (.bin or .bin.gz) below to replace the
|
||||||
|
existing firmware.
|
||||||
|
<p></p>This can take up to a minute. Wait until you see "Activating
|
||||||
|
new Firmware" and EMS-ESP will automatically restart.
|
||||||
</Box>
|
</Box>
|
||||||
<SingleUpload accept="application/octet-stream" onDrop={this.handleDrop} uploading={uploading} progress={progress} onCancel={onCancel} />
|
<SingleUpload
|
||||||
|
onDrop={this.handleDrop}
|
||||||
|
uploading={uploading}
|
||||||
|
progress={progress}
|
||||||
|
onCancel={onCancel}
|
||||||
|
/>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default UploadFirmwareForm;
|
export default UploadFirmwareForm;
|
||||||
|
|||||||
Reference in New Issue
Block a user