Carregue a imagem para o servidor reagir a seguir
import { UploaderComponent } from '@syncfusion/ej2-react-inputs';
import * as React from 'react';
import * as ReactDOM from "react-dom";
export default class App extends React.Component<{}, {}> {
// Uploader component
public path: object = {
removeUrl: 'https://ej2.syncfusion.com/services/api/uploadbox/Remove',
saveUrl: 'https://ej2.syncfusion.com/services/api/uploadbox/Save'
}
public render(): JSX.Element{
return (
<UploaderComponent asyncSettings = {this.path} minFileSize = {10000} maxFileSize= {28400000}
/>
)
}
}
ReactDOM.render(<App />, document.getElementById('fileupload'));
Nabila