Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

stop React Ant Design Upload component from posting files automatically

<Upload beforeUpload={()=> {
    /* update state here */
    return false; }}>
    <Button icon={<UploadOutlined />}>Select File</Button>
</Upload>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #stop #React #Ant #Design #Upload #component #posting #files #automatically
ADD COMMENT
Topic
Name
8+9 =