update serverjs for another cors
This commit is contained in:
@ -27,7 +27,7 @@ function Uploader() {
|
||||
const data = new FormData()
|
||||
data.append('file', file);
|
||||
//console.log(file);
|
||||
axios.post("natnats.mobilous.com:8000/upload", data, { // receive two parameter endpoint url ,form data
|
||||
axios.post("http://natnats.mobilous.com:8000/upload", data, { // receive two parameter endpoint url ,form data
|
||||
})
|
||||
.then(res => { // then print response status
|
||||
console.log(res.statusText)
|
||||
@ -43,7 +43,7 @@ function Uploader() {
|
||||
<CCardBody>
|
||||
<CFormGroup row>
|
||||
<CCol md="3">
|
||||
<CLabel htmlFor="date-input">アップロードするファイルを選択</CLabel>
|
||||
<CLabel htmlFor="date-input">アップロードするファイルを選んでください</CLabel>
|
||||
</CCol>
|
||||
<CCol xs="12" md="9">
|
||||
<CInputFile type="file" onChange={onChangeHandler} id="file-input" name="file-input"/>
|
||||
|
||||
Reference in New Issue
Block a user