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