HADatAc / hascoapi

Human-Aware Science Ontology API (HASCOAPI)
Other
0 stars 2 forks source link

Cannot store uploaded files #25

Open numibesi opened 1 week ago

numibesi commented 1 week ago

On Windows system, runnng api when INGESTING a file the fallowing error is displayed.

== NEW sdd ===========================================================
IngestionAPI.ingest() with elementUri = hidden_info
templateFile :template.conf
IngestionAPI.ingest(): API has received file content
IngestionAPI.ingest(): inside elementType=[sdd]
[WARNING] (DataFile.java) Using Datafile's URI as named graph's name.
[WARNING] (DataFile.java) Using Datafile's URI as named graph's name.
IngestionAPI.ingest(): API has read DataFile from triplestore
[ERROR] IngestionAPI.saveFileAsPermanent(): Error saving file C:\Users\<windows_user>\AppData\Local\Temp\playtemp4199432984904815101\requestBody13815959654691017398asRaw -> \var\hascoapi\SDD.xlsx
numibesi commented 1 week ago

DEBUGG

on hascoapi.conf file its hardcoded the pasth for Ingestion, but on windows files there are no "var" folder, must be checked!

Change have been made for a local windows folder and the Ingestion worked.

NOTE: on window you have to double slash the path

image

UPDATE:

after git pull new version used, and the file is now application.conf

image