Commit 4360e047 authored by nanahira's avatar nanahira

dont upload with url

parent 323aa24c
...@@ -192,10 +192,7 @@ export default class PicsContainer ...@@ -192,10 +192,7 @@ export default class PicsContainer
let useFileHeader = false; let useFileHeader = false;
try { try {
if (this.config.useAssets && this.assets) { if (this.config.useAssets && this.assets) {
const uploadedUrl = await this.assets.upload( const uploadedUrl = await this.assets.upload(url, undefined);
url,
decodeURIComponent(url.split('/').pop()),
);
url = uploadedUrl; url = uploadedUrl;
} else if (this.config.useBase64) { } else if (this.config.useBase64) {
const buf = await this._http.get(url, { const buf = await this._http.get(url, {
......
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