This commit is contained in:
j3d1 2023-07-17 15:53:26 +02:00
parent f7c9d1d069
commit f3b8a3247e
8 changed files with 322 additions and 105 deletions

View file

@ -253,7 +253,7 @@ export default createStore({
async pushFile({state, dispatch, getters}, {item_id, file}) {
const servers = await dispatch('getHomeServers')
const data = await servers.post(getters.signAuth, '/api/item_files/'+item_id+'/', file)
if (data.mime_type) {
if (data.hash) {
state.files.push(data)
return data
}