|
| 1 | +import TypeHighlight from "../components/typeHighlight/TypeHighlight"; |
| 2 | + |
| 3 | +export const UploadConfigAPIRows = [ |
| 4 | + { |
| 5 | + name: "url", |
| 6 | + type: <TypeHighlight np>{"string"}</TypeHighlight>, |
| 7 | + default: <TypeHighlight np></TypeHighlight>, |
| 8 | + description: ( |
| 9 | + <> |
| 10 | + The url endpoint to upload the file. e.g. |
| 11 | + "https://www.myasomwbackend/uploads/file". |
| 12 | + </> |
| 13 | + ), |
| 14 | + }, |
| 15 | + { |
| 16 | + name: "method", |
| 17 | + type: ( |
| 18 | + <> |
| 19 | + <TypeHighlight np>{'"POST"'}</TypeHighlight> |
| 20 | + {" | "} |
| 21 | + <TypeHighlight np>{'"PUT"'}</TypeHighlight> |
| 22 | + {" | "} |
| 23 | + <TypeHighlight np>{'"PATCH"'}</TypeHighlight> |
| 24 | + </> |
| 25 | + ), |
| 26 | + default: <TypeHighlight np>{'"POST"'}</TypeHighlight>, |
| 27 | + description: <>Request headers for http request.</>, |
| 28 | + }, |
| 29 | + { |
| 30 | + name: "uploadLabel", |
| 31 | + type: <TypeHighlight np>{"string"}</TypeHighlight>, |
| 32 | + default: <TypeHighlight np>{'"file"'}</TypeHighlight>, |
| 33 | + description: ( |
| 34 | + <> |
| 35 | + The label to use in the request. On the server this must be the label to |
| 36 | + get the file. |
| 37 | + </> |
| 38 | + ), |
| 39 | + }, |
| 40 | + { |
| 41 | + name: "cleanOnUpload", |
| 42 | + type: <TypeHighlight np>{"boolean"}</TypeHighlight>, |
| 43 | + default: <TypeHighlight np></TypeHighlight>, |
| 44 | + description: ( |
| 45 | + <> |
| 46 | + Flag for indicating whther to remove the non-valid files before starting |
| 47 | + the upload process. This flag is valid only if validation is enable. |
| 48 | + </> |
| 49 | + ), |
| 50 | + }, |
| 51 | + { |
| 52 | + name: "autoUpload", |
| 53 | + type: <TypeHighlight np>{"boolean"}</TypeHighlight>, |
| 54 | + default: <TypeHighlight np></TypeHighlight>, |
| 55 | + description: ( |
| 56 | + <> |
| 57 | + If true, onDrop event or file selection not only will make Dropzone to |
| 58 | + return the list of files, but also it will start the upload stage for |
| 59 | + the files if at least url was set By default is false |
| 60 | + </> |
| 61 | + ), |
| 62 | + }, |
| 63 | + { |
| 64 | + name: "preparingTime", |
| 65 | + type: <TypeHighlight np>{"number"}</TypeHighlight>, |
| 66 | + default: <TypeHighlight np></TypeHighlight>, |
| 67 | + description: ( |
| 68 | + <> |
| 69 | + The time that will last the "preparing" stage By default is 1500 |
| 70 | + miliseconds = 1.5 seconds. |
| 71 | + </> |
| 72 | + ), |
| 73 | + }, |
| 74 | + { |
| 75 | + name: "uploadingMessage", |
| 76 | + type: <TypeHighlight np>{"string"}</TypeHighlight>, |
| 77 | + default: <TypeHighlight np></TypeHighlight>, |
| 78 | + description: ( |
| 79 | + <> |
| 80 | + A message to show in the footer when the uploading process takes place. |
| 81 | + </> |
| 82 | + ), |
| 83 | + }, |
| 84 | +]; |
0 commit comments