Skip to main content

Upload File

Badaso provides a component for uploading files, namely BadasoUploadFile. The uploaded file will be generated as base64 to be sent to the backend. When generating CRUD, the width of this component can be set in Optional Details with the following format.

{    "size": "6" // 1-12 default 12}

View: BadasoUploadFile#

The code below is a sample for using BadasoUploadFile on the Vue Template.

<badaso-upload-file    :label="label"    :placeholder="placeholder"    v-model="model"    size="12"    :alert="error"></badaso-upload-file>

props#

Below is a list of props that this component provides.

size: {    type: String,    default: "12",},label: {    type: String,    default: "Upload File",},placeholder: {    type: String,    default: "Upload File",},value: {    type: Object | String,    default: () => {    return {};    },},additionalInfo: {    type: String,    default: "",},alert: {    type: String|Array,    default: "",},type: {    type: String,},
info

For type props, you can choose private-only or shares-only.