fix
parent
cf4e41ee84
commit
3e682fd0aa
|
|
@ -51,12 +51,10 @@ export default function AttachmentUpload({ name, label, disabled = false, maxCou
|
|||
<Upload
|
||||
//disabled={disabled}
|
||||
listType="picture-card"
|
||||
headers={{
|
||||
token: sessionStorage.getItem('token')
|
||||
}}
|
||||
|
||||
maxCount={maxCount}
|
||||
accept={accept}
|
||||
action={`${window.process.env.app.API_HOST}/safetyEval/file/upload`}
|
||||
action={`${window.process.env.app.API_HOST}/safetyEval/images/upload`}
|
||||
beforeUpload={(file) => {
|
||||
if (!accept) return true;
|
||||
const rules = accept.split(",").map((e) => e.trim().toLowerCase());
|
||||
|
|
|
|||
Loading…
Reference in New Issue