mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
uploading
This commit is contained in:
parent
f9f39a94c8
commit
75fb88b209
6 changed files with 29 additions and 9 deletions
|
@ -55,6 +55,7 @@ export interface IFile {
|
|||
name: string;
|
||||
path: string;
|
||||
full_path: string;
|
||||
url: string;
|
||||
size: number;
|
||||
|
||||
type: 'image' | 'text' | 'audio' | 'video';
|
||||
|
|
|
@ -19,9 +19,10 @@ export const EMPTY_FILE: IFile = {
|
|||
user_id: null,
|
||||
node_id: null,
|
||||
|
||||
name: 'somefile.jpg',
|
||||
path: '/covers/',
|
||||
full_path: '/covers/somefile.jpg',
|
||||
name: 'mario-collage-800x450.jpg',
|
||||
path: '/wp-content/uploads/2017/09/',
|
||||
full_path: '/wp-content/uploads/2017/09/mario-collage-800x450.jpg',
|
||||
url: 'https://cdn.arstechnica.net/wp-content/uploads/2017/09/mario-collage-800x450.jpg',
|
||||
size: 2400000,
|
||||
type: 'image',
|
||||
mime: 'image/jpeg',
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import { createReducer } from "~/utils/reducer";
|
||||
import { IFile } from "~/redux/types";
|
||||
import { UUID } from "../types";
|
||||
import { IFile, UUID } from "~/redux/types";
|
||||
import { UPLOAD_HANDLERS } from "./handlers";
|
||||
|
||||
export interface IUploadStatus {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue