working on sending the new location form data, and getting it from the backend
This commit is contained in:
@@ -124,7 +124,7 @@ func (s *Server) AddNewItemHandler(c *fiber.Ctx) error {
|
||||
} else {
|
||||
urlPrepend = loc.Name + "/" + room.Name + "/" + cabinet.Name + "/" + itemName
|
||||
}
|
||||
pathPrepend := s.Config.Server.LocationPhotoDir + "/" + urlPrepend + "/"
|
||||
pathPrepend := s.Config.Server.LocationFilesDir + "/" + urlPrepend + "/"
|
||||
|
||||
// Create the directory for this item to store the photos
|
||||
err = os.MkdirAll(filepath.ToSlash(pathPrepend), 0755)
|
||||
|
Reference in New Issue
Block a user