Changed FileBucket

This commit is contained in:
2025-01-11 18:53:47 +01:00
parent f3590ebf7c
commit 4f7bffe6fe

View File

@@ -124,7 +124,7 @@ const sendEmail = async () => {
for await (const doc of loadedDocuments.value) { for await (const doc of loadedDocuments.value) {
const {data,error} = await supabase.storage.from("files").download(doc.path) const {data,error} = await supabase.storage.from("filesdev").download(doc.path)
body.attachments.push({ body.attachments.push({
filename: doc.path.split("/")[doc.path.split("/").length -1], filename: doc.path.split("/")[doc.path.split("/").length -1],
@@ -197,25 +197,21 @@ const sendEmail = async () => {
<UInput <UInput
class="w-full my-1" class="w-full my-1"
placeholder="Empfänger" placeholder="Empfänger"
variant="ghost"
v-model="emailData.to" v-model="emailData.to"
/> />
<UInput <UInput
class="w-full my-1" class="w-full my-1"
placeholder="Kopie" placeholder="Kopie"
variant="ghost"
v-model="emailData.cc" v-model="emailData.cc"
/> />
<UInput <UInput
class="w-full my-1" class="w-full my-1"
placeholder="Blindkopie" placeholder="Blindkopie"
variant="ghost"
v-model="emailData.bcc" v-model="emailData.bcc"
/> />
<UInput <UInput
placeholder="Betreff" placeholder="Betreff"
class="w-full my-1" class="w-full my-1"
variant="ghost"
v-model="emailData.subject" v-model="emailData.subject"
/> />
</div> </div>
@@ -230,7 +226,7 @@ const sendEmail = async () => {
class="mx-auto w-10 h-10" class="mx-auto w-10 h-10"
/> />
<span class="text-center text-2xl">Anhänge hochladen</span>--> <span class="text-center text-2xl">Anhänge hochladen</span>-->
<input <UInput
id="inputAttachments" id="inputAttachments"
type="file" type="file"
multiple multiple