w檔案上傳功能
阿新 • • 發佈:2020-07-23
上傳檔案流程
vue.js–>axios–>django介面–>file來寫檔案–>檔案操作(可壓縮檔案,可同步到七牛雲-又拍雲)–>提取檔名稱–>vue.js
上傳檔案vue.js
1
|
<div>
|
配置setting檔案上傳路徑
1
|
STATIC_URL = '/static/'
|
上傳檔案介面
1
|
#匯入上傳資料夾配置
|
vue.js–>axios–>django介面–>file來寫檔案–>檔案操作(可壓縮檔案,可同步到七牛雲-又拍雲)–>提取檔名稱–>vue.js
1
|
<div>
|
1
|
STATIC_URL = '/static/'
|
1
|
#匯入上傳資料夾配置
|