Commit 397ac5f3 by Яков

add upload info

parent f2f839e8
{
"name": "react-ag-qeditor",
"version": "1.0.37",
"version": "1.0.38",
"description": "WYSIWYG html editor",
"author": "atma",
"license": "MIT",
......
import React, { Fragment } from "react";
import Upload from "rc-upload";
import axios from "axios";
class Item extends React.Component {
get src () {
......@@ -172,6 +173,16 @@ export default class Uploader extends React.Component {
size: resp.file_size
}))
let data = resp;
data.pathname = window.location.pathname;
axios.post('/api/web/ru/set-file-data/', resp, { withCredentials: true})
.then(response => {
if (response.data.state === 'success') {
}
});
}
}}
onProgress={(o, file) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment