support for compressed .gz binary uploads

This commit is contained in:
proddy
2020-09-15 14:35:01 +02:00
parent adfa1f0efa
commit 4e10ef2530

View File

@@ -23,9 +23,9 @@ class UploadFirmwareForm extends React.Component<UploadFirmwareFormProps> {
return ( return (
<Fragment> <Fragment>
<Box py={2}> <Box py={2}>
Upload a new firmware (.bin) file below to replace the existing firmware. Upload a new firmware file below to replace the existing firmware.
</Box> </Box>
<SingleUpload accept="application/octet-stream" onDrop={this.handleDrop} uploading={uploading} progress={progress} onCancel={onCancel} /> <SingleUpload accept=".bin,.gz" onDrop={this.handleDrop} uploading={uploading} progress={progress} onCancel={onCancel} />
</Fragment> </Fragment>
); );
} }