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