Revert frontend changes to filter out file extensions in the upload box.
This commit is contained in:
parent
00aca08741
commit
436d6a1585
|
@ -17,7 +17,6 @@
|
|||
export let fileTags = []
|
||||
export let maximum = undefined
|
||||
export let compact = false
|
||||
export let extensions = undefined
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
const onChange = e => {
|
||||
|
@ -40,7 +39,6 @@
|
|||
{fileTags}
|
||||
{maximum}
|
||||
{compact}
|
||||
{extensions}
|
||||
on:change={onChange}
|
||||
/>
|
||||
</Field>
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
import { capitalise } from "helpers"
|
||||
import LinkedRowSelector from "components/common/LinkedRowSelector.svelte"
|
||||
import Editor from "../../integration/QueryEditor.svelte"
|
||||
import { ValidFileExtensions } from "@budibase/shared-core"
|
||||
import { admin } from "stores/portal"
|
||||
|
||||
export let defaultValue
|
||||
export let meta
|
||||
|
@ -22,10 +20,6 @@
|
|||
export let readonly
|
||||
export let error
|
||||
|
||||
let validExtensions = $admin.cloud
|
||||
? ValidFileExtensions.map(ext => `.${ext}`).join(", ")
|
||||
: "*"
|
||||
|
||||
const resolveTimeStamp = timestamp => {
|
||||
if (!timestamp) {
|
||||
return null
|
||||
|
@ -65,7 +59,7 @@
|
|||
bind:value
|
||||
/>
|
||||
{:else if type === "attachment"}
|
||||
<Dropzone {label} {error} extensions={validExtensions} bind:value />
|
||||
<Dropzone {label} {error} bind:value />
|
||||
{:else if type === "boolean"}
|
||||
<Toggle text={label} {error} bind:value />
|
||||
{:else if type === "array" && meta.constraints.inclusion.length !== 0}
|
||||
|
|
|
@ -2,17 +2,13 @@
|
|||
import Field from "./Field.svelte"
|
||||
import { CoreDropzone } from "@budibase/bbui"
|
||||
import { getContext } from "svelte"
|
||||
import { ValidFileExtensions } from "@budibase/shared-core"
|
||||
import { environmentStore } from "../../../stores/index.js"
|
||||
|
||||
export let field
|
||||
export let label
|
||||
export let disabled = false
|
||||
export let compact = false
|
||||
export let validation
|
||||
export let extensions = $environmentStore.cloud
|
||||
? ValidFileExtensions.map(ext => `.${ext}`).join(", ")
|
||||
: "*"
|
||||
export let extensions
|
||||
export let onChange
|
||||
export let maximum = undefined
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
import { onMount } from "svelte"
|
||||
import { getContext } from "svelte"
|
||||
import { Dropzone } from "@budibase/bbui"
|
||||
import { ValidFileExtensions } from "@budibase/shared-core"
|
||||
|
||||
export let value
|
||||
export let focused = false
|
||||
|
@ -14,7 +13,6 @@
|
|||
|
||||
const { API, notifications } = getContext("grid")
|
||||
const imageExtensions = ["png", "tiff", "gif", "raw", "jpg", "jpeg"]
|
||||
const validExtensions = ValidFileExtensions.map(ext => `.${ext}`).join(", ")
|
||||
|
||||
let isOpen = false
|
||||
|
||||
|
@ -98,7 +96,6 @@
|
|||
{value}
|
||||
compact
|
||||
on:change={e => onChange(e.detail)}
|
||||
extensions={validExtensions}
|
||||
{processFiles}
|
||||
{deleteAttachments}
|
||||
{handleFileTooLarge}
|
||||
|
|
Loading…
Reference in New Issue