added reading to the file, msi works on windows only. exe works if there is exiftool

This commit is contained in:
2024-06-19 14:40:32 +03:00
parent aa41b83964
commit afa56cb83e
5 changed files with 101 additions and 16 deletions

View File

@@ -261,7 +261,7 @@ func upload() http.Handler {
fn,_:=os.OpenFile("Data/"+filename, os.O_CREATE, 0666)
fn.Write(fileBytes)
fn.Close()
getParamsFromExif("Data/"+filename)
log.Println(getDataFromFile("Data/"+filename))
})}
// index creates an HTTP handler that serves the main page with data from the database.