remove application/octet-stream for OSX

This commit is contained in:
proddy
2021-03-10 17:48:49 +01:00
parent 1670c346bc
commit c1c2c609c9

View File

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