From 47be61a4fb47d85ab5b03e74d2ffb5ad62b45205 Mon Sep 17 00:00:00 2001 From: ecrum19 Date: Tue, 9 Sep 2025 15:35:41 +0200 Subject: [PATCH] data upload error --- demonstrator/triple-combined-service.rq | 2 +- demonstrator/triple-solid-2.rq | 2 +- src/components/PodUpload.vue | 7 +++++++ src/components/fileUpload.ts | 1 - 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/demonstrator/triple-combined-service.rq b/demonstrator/triple-combined-service.rq index a5407f51..97d888ff 100644 --- a/demonstrator/triple-combined-service.rq +++ b/demonstrator/triple-combined-service.rq @@ -1,4 +1,4 @@ -# Datasources: http://localhost:3000/test/Uploads/nbn-chist-era-annex-1-chemicals-alt.ttl +# Datasources: http://localhost:3000/test/random/nbn-chist-era-annex-1-chemicals-custom-predicate.ttl PREFIX rdfs: PREFIX rh: PREFIX xsd: diff --git a/demonstrator/triple-solid-2.rq b/demonstrator/triple-solid-2.rq index 286f294b..f14f1b59 100644 --- a/demonstrator/triple-solid-2.rq +++ b/demonstrator/triple-solid-2.rq @@ -1,4 +1,4 @@ -# Datasources: http://localhost:3000/test/Uploads/nbn-chist-era-annex-1-chemicals-alt.ttl +# Datasources: http://localhost:3000/test/random/nbn-chist-era-annex-1-chemicals-custom-predicate.ttl PREFIX thd: SELECT DISTINCT ?CAS WHERE { diff --git a/src/components/PodUpload.vue b/src/components/PodUpload.vue index 7faad7c4..80797d87 100644 --- a/src/components/PodUpload.vue +++ b/src/components/PodUpload.vue @@ -368,6 +368,13 @@ export default { this.uploadPath = selectedContainer; }, }, + watch: { + selectedPodUrl(newValue, oldValue) { + if (newValue !== oldValue) { + this.uploadPath = this.selectedPodUrl; + } + }, + }, mounted() { // Set initial upload path to the selected Pod URL if (this.selectedPodUrl !== "") { diff --git a/src/components/fileUpload.ts b/src/components/fileUpload.ts index d168bf1c..09db2512 100644 --- a/src/components/fileUpload.ts +++ b/src/components/fileUpload.ts @@ -277,7 +277,6 @@ export async function alreadyExists( try { const containerContents = await getSolidDataset(uploadUrl, { fetch }); const allegedFile = getThing(containerContents, `${uploadUrl}${file.name}`); - // console.log(`The file ${allegedFile.url} already exists...`) return true; } catch (e) { // console.log(`${uploadUrl}${file.name} does not yet exist, uploading now.`)